Skip to content

HostingExtensions.UseCosmosClustering(IServiceCollection, Action<CosmosClusteringOptions>)

UseCosmosClustering(IServiceCollection, Action<CosmosClusteringOptions>)

staticextension
View source
public static IServiceCollection UseCosmosClustering(this IServiceCollection services, Action<CosmosClusteringOptions> configureOptions)
Adds clustering backed by Azure Cosmos DB.

Parameters

servicesIServiceCollection
The service collection.
configureOptionsAction<CosmosClusteringOptions>
The delegate used to configure the provider.

Returns

The provided services.