# FlociAzureServiceBusResource

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.Floci](/reference/api/csharp/communitytoolkit.aspire.hosting.floci.md)
- Version: `13.6.1`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9c2addac6f527ef2e33712d290b84574b455a3b/src/CommunityToolkit.Aspire.Hosting.Floci/FlociAzureServiceBusResource.cs)
- Inherits: `Resource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IResourceWithEndpoints`, `IResourceWithParent`, `IResourceWithParent<FlociAzureContainerResource>`, `IValueProvider`, `IValueWithReferences`

Represents the Service Bus AMQP data plane exposed by a Floci Azure emulator resource.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class FlociAzureServiceBusResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IResourceWithEndpoints,
      Aspire.Hosting.ApplicationModel.IResourceWithParent,
      Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.ApplicationModel.FlociAzureContainerResource>,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `CommunityToolkit.Aspire.Hosting.Floci/FlociAzureServiceBusResource`
- Public instance properties are exported as ATS capabilities.

## Remarks

floci-az serves Service Bus AMQP from an Artemis sidecar container that publishes the configured ports directly on the Docker host. The resource models those host ports as proxyless Aspire endpoints which the integration allocates without proxying traffic to the parent container. Container consumers reach those same ports through the container runtime's host gateway. This resource is only supported in run mode.

## Constructors

- [FlociAzureServiceBusResource(string, FlociAzureContainerResource)](/reference/api/csharp/communitytoolkit.aspire.hosting.floci/flociazureservicebusresource/constructors.md#constructor-string-flociazurecontainerresource) -- Represents the Service Bus AMQP data plane exposed by a Floci Azure emulator resource.

## Properties

- [AmqpEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.floci/flociazureservicebusresource/properties.md#amqpendpoint) : `EndpointReference` `get` -- Gets the Service Bus plain AMQP endpoint.
- [AmqpTlsEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.floci/flociazureservicebusresource/properties.md#amqptlsendpoint) : `EndpointReference` `get` -- Gets the Service Bus AMQPS/TLS endpoint.
- [ConnectionStringExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.floci/flociazureservicebusresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the Service Bus connection string expression. `UseDevelopmentEmulator=true` makes the Azure SDKs use plain AMQP (no TLS), matching the official Service Bus emulator's connection-string shape.
- [Parent](/reference/api/csharp/communitytoolkit.aspire.hosting.floci/flociazureservicebusresource/properties.md#parent) : [FlociAzureContainerResource](/reference/api/csharp/communitytoolkit.aspire.hosting.floci/flociazurecontainerresource.md) `get` -- Gets the parent Floci Azure emulator resource.
