Skip to content
Docs Try Aspire
Docs Try

withHostPort

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

Signature

method withHostPort builder
Sets the host port for the Event Hubs emulator endpoint
withHostPort(port: number): AzureEventHubsEmulatorResource
port number
AzureEventHubsEmulatorResource

Applies to

This method applies to the following types: