Skip to content

HostingExtensions.UseCosmosGatewayListProvider(IServiceCollection, Action<OptionsBuilder<CosmosClusteringOptions>>)

UseCosmosGatewayListProvider(IServiceCollection, Action<OptionsBuilder<CosmosClusteringOptions>>)

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

Parameters

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

Returns

The provided services.