AzureEventHubsExtensions.WithGatewayPort Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use WithHostPort instead.
Configures the host port for the Azure Event Hubs emulator is exposed on instead of using randomly assigned port.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEventHubsEmulatorResource> WithGatewayPort(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEventHubsEmulatorResource> builder, int? port);
[System.Obsolete("Use WithHostPort instead.")]
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>
[<System.Obsolete("Use WithHostPort instead.")>]
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 for the Azure Event Hubs emulator container
Returns
Azure Event Hubs emulator resource builder.
- Attributes