# RavenDBServerResource

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.RavenDB](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerResource.cs)
- Inherits: `ContainerResource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IValueProvider`, `IValueWithReferences`

A resource that represents a RavenDB container.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class RavenDBServerResource
    : Aspire.Hosting.ApplicationModel.ContainerResource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerResource`

## Constructors

- [RavenDBServerResource(string, bool)](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource/constructors.md#constructor-string-bool) -- A resource that represents a RavenDB container.

## Properties

- [ConnectionStringExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the RavenDB server, formatted as "http(s)://{Host}:{Port}" depending on the security setting.
- [Databases](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource/properties.md#databases) : `IReadOnlyDictionary<string, string>` `get` -- Gets a read-only dictionary of databases associated with this server resource. The key represents the resource name, and the value represents the database name.
- [Host](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource/properties.md#host) : `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for this resource.
- [Port](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource/properties.md#port) : `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for this resource.
- [PrimaryEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource/properties.md#primaryendpoint) : `EndpointReference` `get` -- Gets the primary endpoint for the RavenDB server.
- [TcpEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource/properties.md#tcpendpoint) : `EndpointReference` `get` -- Gets the TCP endpoint for the RavenDB server.
- [UriExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource/properties.md#uriexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the RavenDB server.
