Skip to content
Docs Try Aspire
Docs Try

withHostPort

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

Signature

method withHostPort builder
Configures the host port for the Azure Event Hubs emulator is exposed on instead of using randomly assigned port.
withHostPort(port: number): AzureEventHubsEmulatorResource
port number
AzureEventHubsEmulatorResource

Applies to

This method applies to the following types: