Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithFlociAzureServiceBusReference

Method
📦 CommunityToolkit.Aspire.Hosting.Floci v13.6.1
func (ResourceWithEnvironment) WithFlociAzureServiceBusReference(
serviceBus FlociAzureServiceBusResource,
options ...*WithFlociAzureServiceBusReferenceOptions,
) ResourceWithEnvironment

Signature

methodWithFlociAzureServiceBusReferencebuilder
Adds a Floci Azure Service Bus reference
WithFlociAzureServiceBusReference(
serviceBus FlociAzureServiceBusResource,
options ...*WithFlociAzureServiceBusReferenceOptions,
) ResourceWithEnvironment
serviceBusFlociAzureServiceBusResourceThe Service Bus child resource to reference.
options...*WithFlociAzureServiceBusReferenceOptionsOptional settings, described under Options.

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

ConnectionName*stringThe connection string name, defaulting to the child resource name.
ResourceWithEnvironment

The resource builder receiving the reference.

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

Applies to

This method applies to the following types:

typeCSharpAppResource
typeContainerResource
typeDotnetToolResource
typeExecutableResource
typeFlociAwsContainerResource
typeFlociAzureContainerResource
typeFlociGcpContainerResource
typeFlociUIContainerResource
typeProjectResource