Skip to content
DocsTry Aspire
DocsTry

AzureServiceBusEmulatorResource.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

Defined on

This method is defined on the following type: