Skip to content

CosmosOptions.ConfigureCosmosClient(Func<IServiceProvider, ValueTask<CosmosClient>>)

ConfigureCosmosClient(Func<IServiceProvider, ValueTask<CosmosClient>>)

View source
public void ConfigureCosmosClient(Func<IServiceProvider, ValueTask<CosmosClient>> createClient)
Configures the Cosmos DB client.

Parameters

createClientFunc<IServiceProvider, ValueTask<CosmosClient>>
The delegate used to create the Cosmos DB client.