Skip to content
Docs Try Aspire

withHostPort

Function
📦 Aspire.Hosting.Azure.EventHubs v13.2.0-preview.1.26159.1
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 function is an extension method on the following types: