Skip to content
Docs Try Aspire
Docs Try

withHostPort

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

Signature

method withHostPort builder
Sets the host port for the Service Bus emulator endpoint
withHostPort(port: number): AzureServiceBusEmulatorResource
port number
AzureServiceBusEmulatorResource

Applies to

This method applies to the following types: