Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithSqlServer

Method
📦 Aspire.Hosting.Azure.ServiceBus v17.0.0
func (AzureServiceBusEmulatorResource) WithSqlServer(sqlServer SqlServerServerResource) AzureServiceBusEmulatorResource

Signature

methodWithSqlServerbuilder
Configures the Azure Service Bus emulator to use an existing SQL Server resource instead of creating one for it.
WithSqlServer(sqlServer SqlServerServerResource) AzureServiceBusEmulatorResource
sqlServerSqlServerServerResourceThe SQL Server resource the emulator should use to store its state.
AzureServiceBusEmulatorResource

The resource builder.

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

Applies to

This method applies to the following types: