Skip to content
Docs Try Aspire
Docs Try

AzureServiceBusEmulatorResource.withHostPort

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

Signature

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

Defined on

This method is defined on the following type: