ICosmosClientProvider
The cosmos client provider exposes a means of providing
Namespace: Microsoft.Azure.CosmosRepository.Providers
Kind: interface
The cosmos client provider exposes a means of providing
an instance to the configured CosmosClient object,
which is shared.
public interface ICosmosClientProviderExample
Members
Property
ICosmosClientProvider.CosmosClient
CosmosClient CosmosClient { get; }Returns — CosmosClient
Method
ICosmosClientProvider.UseClientAsync<T>(Func<CosmosClient, Task<T>>)
Task<T> UseClientAsync<T>(Func<CosmosClient, Task<T>> consume)Parameters
| Name | Type | Description |
|---|---|---|
consume | Task{{T}}} | — |
Returns — Task{{T}}