Skip to content
Docs Try Aspire

AzureEventHubsEmulatorResource.withHostPort

Method
📦 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

Defined on

This method is defined on the following type: