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 ICosmosContainerServiceExample
Members
Methods
ICosmosContainerService.GetContainerAsync<TItem>(bool)
Gets a container for an IItem
Task<Container> GetContainerAsync<TItem>(bool forceContainerSync = false) where TItem : IItemParameters
| Name | Type | Description |
|---|---|---|
forceContainerSync | Boolean | — |
Returns — Container}: A Cosmos DB Container
ICosmosContainerService.GetContainerAsync(IReadOnlyList<Type>)
Gets a container for the given IItem’s types.
Task<Container> GetContainerAsync(IReadOnlyList<Type> itemTypes)Parameters
| Name | Type | Description |
|---|---|---|
itemTypes | Type} | The types of IItem’s |
Returns — Container}: A Cosmos DB Container