Skip to content
Docs Try Aspire
Docs Try

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

Defined on

This method is defined on the following type: