# FlagdResource

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.Flagd](/reference/api/csharp/communitytoolkit.aspire.hosting.flagd.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.Flagd/FlagdResource.cs)
- Inherits: `ContainerResource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IValueProvider`, `IValueWithReferences`

A resource that represents a flagd container.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class FlagdResource
    : 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.Flagd/FlagdResource`

## Remarks

Constructs a [FlagdResource](/reference/api/csharp/communitytoolkit.aspire.hosting.flagd/flagdresource.md).

## Constructors

- [FlagdResource(string)](/reference/api/csharp/communitytoolkit.aspire.hosting.flagd/flagdresource/constructors.md#constructor-string) -- A resource that represents a flagd container.

## Properties

- [ConnectionStringExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.flagd/flagdresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the flagd server.
- [HealthCheckEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.flagd/flagdresource/properties.md#healthcheckendpoint) : `EndpointReference` `get` -- Gets the health check HTTP endpoint for the flagd server.
- [Host](/reference/api/csharp/communitytoolkit.aspire.hosting.flagd/flagdresource/properties.md#host) : `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for this resource.
- [OfrepEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.flagd/flagdresource/properties.md#ofrependpoint) : `EndpointReference` `get` -- Gets the OFREP endpoint for the flagd server.
- [Port](/reference/api/csharp/communitytoolkit.aspire.hosting.flagd/flagdresource/properties.md#port) : `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for this resource.
- [PrimaryEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.flagd/flagdresource/properties.md#primaryendpoint) : `EndpointReference` `get` -- Gets the primary HTTP endpoint for the flagd server.
- [UriExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.flagd/flagdresource/properties.md#uriexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the flagd server.
