Search documentationEsc

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 ICosmosClientProvider

Example

Members

Property

ICosmosClientProvider.CosmosClient

CosmosClient CosmosClient { get; }

ReturnsCosmosClient

Method

ICosmosClientProvider.UseClientAsync<T>(Func<CosmosClient, Task<T>>)

Task<T> UseClientAsync<T>(Func<CosmosClient, Task<T>> consume)

Parameters

NameTypeDescription
consumeTask{{T}}}

ReturnsTask{{T}}