Skip to content
Docs Try Aspire

withHostPort

Function
📦 Aspire.Hosting.Azure.ServiceBus v13.2.0-preview.1.26159.1
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 function is an extension method on the following types: