Search documentationEsc

ICosmosContainerProvider<TItem>

The cosmos container provider exposes a means of providing

Namespace: Microsoft.Azure.CosmosRepository.Providers
Kind: interface

The cosmos container provider exposes a means of providing an instance to the configured Container object.

public interface ICosmosContainerProvider<TItem> where TItem : IItem

Type parameters

NameDescription
TItem

Example

Members

Method

ICosmosContainerProvider<TItem>.GetContainerAsync()

Asynchronously gets the configured Container instance that corresponds to the cosmos RepositoryOptions.

Task<Container> GetContainerAsync()

ReturnsContainer}: A Container instance.