Cosmonaut.Extensions.Microsoft.DependencyInjection 1.1.0

There is a newer version of this package available.
See the version list below for details.
Install-Package Cosmonaut.Extensions.Microsoft.DependencyInjection -Version 1.1.0
dotnet add package Cosmonaut.Extensions.Microsoft.DependencyInjection --version 1.1.0
<PackageReference Include="Cosmonaut.Extensions.Microsoft.DependencyInjection" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cosmonaut.Extensions.Microsoft.DependencyInjection --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cosmonaut.Extensions.Microsoft.DependencyInjection, 1.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Cosmonaut.Extensions.Microsoft.DependencyInjection as a Cake Addin
#addin nuget:?package=Cosmonaut.Extensions.Microsoft.DependencyInjection&version=1.1.0

// Install Cosmonaut.Extensions.Microsoft.DependencyInjection as a Cake Tool
#tool nuget:?package=Cosmonaut.Extensions.Microsoft.DependencyInjection&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


The idea is pretty simple. You can have one CosmoStore per entity (POCO/dtos etc) This entity will be used to create a collection in the cosmosdb and it will offer all the data access for this object

Registering the CosmosStores in ServiceCollection for DI support

 var cosmosSettings = new CosmosStoreSettings("<<databaseName>>", 

//or just by using the Action extension

serviceCollection.AddCosmosStore<Book>(options =>
                options.DatabaseName = "<<databaseName>>";
                options.AuthKey = "<<authkey>>";
                options.EndpointUrl = new Uri("<<cosmosUri>>");

//or just initialise the object

ICosmosStore<Book> bookStore = new CosmosStore<Book>(cosmosSettings)

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Cosmonaut.Extensions.Microsoft.DependencyInjection:

Package Downloads

Helpers for OrderCloud middleware projects


Templates to use when creating an api for Microservices.


Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Cosmonaut.Extensions.Microsoft.DependencyInjection:

Repository Stars
🌐 A supercharged Azure CosmosDB .NET SDK with ORM support
Version Downloads Last updated
2.3.0 178,685 9/28/2018
2.1.0 1,534 9/10/2018
1.1.0 465 9/10/2018

Please report any issues on Github.