withHostPort

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

Signature

methodwithHostPortbuilder
Configures the host port for the Azure Event Hubs emulator is exposed on instead of using randomly assigned port.
withHostPort(port: number): AzureEventHubsEmulatorResource
portnumberThe port to bind on the host. If `null` is used, a random port will be assigned.
AzureEventHubsEmulatorResource

Applies to

This method applies to the following types: