Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithGatewayPort

Method
📦 Aspire.Hosting.Azure.CosmosDB v17.0.0
func (AzureCosmosDBEmulatorResource) WithGatewayPort(port *float64) AzureCosmosDBEmulatorResource

Signature

methodWithGatewayPortbuilder
Configures the gateway port for the Azure Cosmos DB emulator.
WithGatewayPort(port *float64) AzureCosmosDBEmulatorResource
port*float64Host port to bind to the emulator gateway port.
AzureCosmosDBEmulatorResource

Cosmos emulator resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: