Freigeben über


AzureCosmosExtensions.WithPartitionCount Method

Definition

Configures the partition count for the Azure Cosmos DB emulator.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource> WithPartitionCount (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource> builder, int count);
static member WithPartitionCount : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource> * int -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource>
<Extension()>
Public Function WithPartitionCount (builder As IResourceBuilder(Of AzureCosmosDBEmulatorResource), count As Integer) As IResourceBuilder(Of AzureCosmosDBEmulatorResource)

Parameters

builder
IResourceBuilder<AzureCosmosDBEmulatorResource>

Builder for the Cosmos emulator container

count
Int32

Desired partition count.

Returns

Cosmos emulator resource builder.

Remarks

Not calling this method will result in the default of 25 partitions. The actual started partitions is always one more than specified. See this documentation about setting the partition count.

Applies to