Skip to content
DocsTry Aspire
DocsTry

AzureEventHubsEmulatorResource.withHostPort

Method
📦 Aspire.Hosting.Azure.EventHubs v13.4.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
portnumber
AzureEventHubsEmulatorResource

Defined on

This method is defined on the following type: