# FlociContainerResource

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

Common base for Floci cloud-emulator container resources (AWS, Azure, GCP). Holds the shared endpoint/connection-string plumbing so each cloud only needs to implement its own image, container env vars, and Floci UI wiring.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public abstract class FlociContainerResource
    : 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
{
    // ...
}
```

## Properties

- [ConnectionStringExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.floci/flocicontainerresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the emulator endpoint URL, following the primary endpoint's [FlociContainerResource.Scheme](/reference/api/csharp/communitytoolkit.aspire.hosting.floci/flocicontainerresource/properties.md#scheme).
- [Host](/reference/api/csharp/communitytoolkit.aspire.hosting.floci/flocicontainerresource/properties.md#host) : `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for the primary endpoint.
- [Port](/reference/api/csharp/communitytoolkit.aspire.hosting.floci/flocicontainerresource/properties.md#port) : `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for the primary endpoint.
- [PrimaryEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.floci/flocicontainerresource/properties.md#primaryendpoint) : `EndpointReference` `get` -- Gets the primary endpoint reference for the Floci container.
- [Scheme](/reference/api/csharp/communitytoolkit.aspire.hosting.floci/flocicontainerresource/properties.md#scheme) : `EndpointReferenceExpression` `get` -- Gets the scheme endpoint reference for the primary endpoint. `http` unless a TLS certificate has been configured, in which case the endpoint is switched to `https` before the application starts. Floci serves both on the same port, so the port never changes.
