Skip to content

eddiemon/CosmosContainer

Repository files navigation

CosmosContainer

This project adds an interface IContainer and a class wrapping a Microsoft.Azure.Cosmos.Container object. This can be used for dependency injecting multiple containers using a DI framework.

Usage

// variable 'container' is a previously created Microsoft.Azure.Cosmos.Container object
var personContainer = new Container<Person>(container);
builder.Services.AddSingleton<IContainer<Person>>(personContainer);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages