AzureCosmosExtensions.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.
Configures the gateway port for the Azure Cosmos DB emulator.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource> WithGatewayPort (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource> builder, int? port);
static member WithGatewayPort : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource> * Nullable<int> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource>
<Extension()>
Public Function WithGatewayPort (builder As IResourceBuilder(Of AzureCosmosDBEmulatorResource), port As Nullable(Of Integer)) As IResourceBuilder(Of AzureCosmosDBEmulatorResource)
Parameters
Builder for the Cosmos emulator container
Returns
Cosmos emulator resource builder.