Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

withHostPort

Method
📦 Aspire.Hosting.Azure.ServiceBus v13.6.0
interface AzureServiceBusEmulatorResource {
// ... omitted for brevity
withHostPort(port: number): AzureServiceBusEmulatorResource;
}

Signature

methodwithHostPortbuilder
Configures the host port for the Azure Service Bus emulator is exposed on instead of using randomly assigned port.
withHostPort(port: number): AzureServiceBusEmulatorResource
portnumber
AzureServiceBusEmulatorResource

Applies to

This method applies to the following types: