Orleans.Persistence.CosmosDB 1.1.40

.NET Standard 2.0
There is a newer version of this package available.
See the version list below for details.
dotnet add package Orleans.Persistence.CosmosDB --version 1.1.40
NuGet\Install-Package Orleans.Persistence.CosmosDB -Version 1.1.40
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Orleans.Persistence.CosmosDB" Version="1.1.40" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Orleans.Persistence.CosmosDB --version 1.1.40
#r "nuget: Orleans.Persistence.CosmosDB, 1.1.40"
#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 Orleans.Persistence.CosmosDB as a Cake Addin
#addin nuget:?package=Orleans.Persistence.CosmosDB&version=1.1.40

// Install Orleans.Persistence.CosmosDB as a Cake Tool
#tool nuget:?package=Orleans.Persistence.CosmosDB&version=1.1.40

Configuration

It is not mandatory to use all the providers at once. Just pick the one you are interested in from the samples and you should be good as they don't depend on each other.

Silo

Example


var silo = new SiloHostBuilder()
    .UseCosmosDBMembership(opt => 
    {
        // Use CosmosDB as the cluster membership table.
        // Configure CosmosDB settings in opt.
    }) 
    .AddCosmosDBGrainStorageAsDefault(opt => 
    {
        // Configure CosmosDB persistence provider.
        // Configure CosmosDB settings in opt.
    }) 
    .UseCosmosDBReminderService(op => 
    {
        // Configure CosmosDB reminders provider.
        // Configure CosmosDB settings in opt.
    }) 
    .Build();
await silo.StartAsync();

Client

Example

var clientConfig = new ClientConfiguration();

var client = new ClientBuilder()
    .UseCosmosDBGatewayListProvider(opt => 
    {
        // Use CosmosDB as the Gateway list provider.
        // Configure CosmosDB settings in opt.
    }) 
    .Build();
    await client.Connect();

Great! Now you have Orleans configured to use Azure CosmosDB as the back storage for its providers!

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Orleans.Persistence.CosmosDB:

Package Downloads
Orleans.Contrib.UniversalSilo

This library provides primitives to set up a configurable, application-agnostic Orleans silo and clients. Use it with the Orleans.Contrib.UniversalSilo.Templates to get started with Orleans.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.3 28,941 4/24/2020
3.0.2 4,808 3/23/2020
3.0.1 1,413 1/29/2020
3.0.0 523 11/14/2019
1.3.0 2,208 4/3/2019
1.2.1 1,225 3/20/2019
1.2.0 604 3/19/2019
1.1.42 1,691 9/28/2018
1.1.40 1,203 3/28/2018
1.1.38 882 3/28/2018
1.1.0-rc2-36 686 3/13/2018
1.1.0-rc1-34 719 3/12/2018
1.1.0-rc1-29 653 2/27/2018
1.0.1-preview-27 726 2/10/2018
1.0.1-preview-25 758 2/5/2018
1.0.1-preview-21 605 2/1/2018
1.0.1-preview-19 713 2/1/2018
1.0.0-preview-17 611 2/1/2018
1.0.0-preview-16 715 2/1/2018
1.0.0-preview-1 898 2/1/2018