withHostPort

Method
📦 Aspire.Hosting.Azure.ServiceBus v17.0.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
portnumberThe port to bind on the host. If `null` is used, a random port will be assigned.
AzureServiceBusEmulatorResource

Applies to

This method applies to the following types: