Skip to content

HostingExtensions.UseCosmosGatewayListProvider(IServiceCollection, Action<CosmosClusteringOptions>)

UseCosmosGatewayListProvider(IServiceCollection, Action<CosmosClusteringOptions>)

staticextension
View source
public static IServiceCollection UseCosmosGatewayListProvider(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.