Skip to content
DocsTry Aspire
DocsTry

withHostPort

Method
📦 Aspire.Hosting.Azure.ServiceBus v13.4.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: