Search documentationEsc

ICosmosContainerService

Responsible for providing functions to work with containers

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

Responsible for providing functions to work with containers

public interface ICosmosContainerService

Example

Members

Methods

ICosmosContainerService.GetContainerAsync<TItem>(bool)

Gets a container for an IItem

Task<Container> GetContainerAsync<TItem>(bool forceContainerSync = false) where TItem : IItem

Parameters

NameTypeDescription
forceContainerSyncBoolean

ReturnsContainer}: A Cosmos DB Container

ICosmosContainerService.GetContainerAsync(IReadOnlyList<Type>)

Gets a container for the given IItem’s types.

Task<Container> GetContainerAsync(IReadOnlyList<Type> itemTypes)

Parameters

NameTypeDescription
itemTypesType}The types of IItem’s

ReturnsContainer}: A Cosmos DB Container