# FlociAzureServiceBusResource Constructors

- Package: [CommunityToolkit.Aspire.Hosting.Floci](/reference/api/csharp/communitytoolkit.aspire.hosting.floci.md)
- Type: [FlociAzureServiceBusResource](/reference/api/csharp/communitytoolkit.aspire.hosting.floci/flociazureservicebusresource.md)
- Kind: `Constructors`
- Members: `1`

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

<a id="constructor"></a>
<a id="constructor-string-flociazurecontainerresource"></a>

## FlociAzureServiceBusResource(string, FlociAzureContainerResource)

- Name: `Constructor(string, FlociAzureContainerResource)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9c2addac6f527ef2e33712d290b84574b455a3b/src/CommunityToolkit.Aspire.Hosting.Floci/FlociAzureServiceBusResource.cs#L18-L38)

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

```csharp
public class FlociAzureServiceBusResource
{
    public FlociAzureServiceBusResource(
        string name,
        FlociAzureContainerResource parent)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `parent` ([FlociAzureContainerResource](/reference/api/csharp/communitytoolkit.aspire.hosting.floci/flociazurecontainerresource.md))
  The parent Floci Azure emulator resource.

## 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.
