Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

FlociAzureContainerResource.WithServiceBus

Method
📦 CommunityToolkit.Aspire.Hosting.Floci v13.6.1
type FlociAzureContainerResource interface {
// ... omitted for brevity
WithServiceBus(options ...*WithServiceBusOptions) FlociAzureServiceBusResource
}

Signature

methodWithServiceBusbuilder
Adds a Service Bus child resource to the Floci Azure emulator
WithServiceBus(options ...*WithServiceBusOptions) FlociAzureServiceBusResource
options...*WithServiceBusOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithServiceBusOptions argument.

Name*stringThe globally unique name of the Service Bus resource (default: servicebus). Pass a distinct name for each additional emulator.
AmqpPort*float64Host port for plain AMQP (default: selected by the integration at startup).
AmqpTlsPort*float64Host port for AMQPS/TLS (default: selected by the integration at startup).
FlociAzureServiceBusResource

A reference to the IResourceBuilder for further configuration.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: