共用方式為


AzureEventHubsExtensions.WithGatewayPort Method

Definition

Configures the gateway port for the Azure Event Hubs emulator.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEventHubsEmulatorResource> WithGatewayPort (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEventHubsEmulatorResource> builder, int? port);
static member WithGatewayPort : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEventHubsEmulatorResource> * Nullable<int> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEventHubsEmulatorResource>
<Extension()>
Public Function WithGatewayPort (builder As IResourceBuilder(Of AzureEventHubsEmulatorResource), port As Nullable(Of Integer)) As IResourceBuilder(Of AzureEventHubsEmulatorResource)

Parameters

builder
IResourceBuilder<AzureEventHubsEmulatorResource>

Builder for the Azure Event Hubs emulator container

port
Nullable<Int32>

Host port to bind to the emulator gateway port.

Returns

Azure Event Hubs emulator resource builder.

Applies to