Orleans.Persistence.CosmosDB
1.1.0-rc1-29
See the version list below for details.
dotnet add package Orleans.Persistence.CosmosDB --version 1.1.0-rc1-29
NuGet\Install-Package Orleans.Persistence.CosmosDB -Version 1.1.0-rc1-29
<PackageReference Include="Orleans.Persistence.CosmosDB" Version="1.1.0-rc1-29" />
paket add Orleans.Persistence.CosmosDB --version 1.1.0-rc1-29
#r "nuget: Orleans.Persistence.CosmosDB, 1.1.0-rc1-29"
// Install Orleans.Persistence.CosmosDB as a Cake Addin #addin nuget:?package=Orleans.Persistence.CosmosDB&version=1.1.0-rc1-29&prerelease // Install Orleans.Persistence.CosmosDB as a Cake Tool #tool nuget:?package=Orleans.Persistence.CosmosDB&version=1.1.0-rc1-29&prerelease
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
We need to configure the Orleans Silo with the below:
- Use
.UseCosmosDBMembership()
onISiloHostBuilder
to enable cluster membership. - Use
.AddAzureCosmosDBPersistence()
onClusterConfiguration
to register the grain state persistence provider. - Use
.UseAzureCosmosDBPersistence()
onISiloHostBuilder
to configure the grain state persistence provider. - Use
.AddAzureCosmosDBReminders()
onClusterConfiguration
to register the reminders provider. - Use
.UseAzureCosmosDBReminders()
onISiloHostBuilder
to configure the reminders provider.
Example
var siloConfig = new ClusterConfiguration();
siloConfig.AddAzureCosmosDBPersistence("myProvider"); //Register the persistence provider.
siloConfig.AddAzureCosmosDBReminders(); // Register the reminders provider.
var silo = new SiloHostBuilder()
.UseConfiguration(siloConfig)
.UseCosmosDBMembership() // Use CosmosDB as the cluster membership table.
.UseAzureCosmosDBPersistence() // Configure CosmosDB persistence provider.
.UseAzureCosmosDBReminders() // Configure CosmosDB reminders provider.
.Build();
await silo.StartAsync();
Client
Now your client application needs to connect to the Orleans Cluster by using configuring the Gateway List Provider:
- Use
.UseCosmosDBGatewayListProvider()
onIClientBuilder
.
Example
var clientConfig = new ClientConfiguration();
var client = new ClientBuilder()
.UseConfiguration(clientConfig)
.UseCosmosDBGatewayListProvider() // Use CosmosDB as the Gateway list provider.
.Build();
await client.Connect();
Great! Now you have Orleans configured to use Azure CosmosDB as the back storage for its providers!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Azure.DocumentDB.Core (>= 1.8.2)
- Microsoft.Orleans.OrleansRuntime (>= 2.0.0-rc1)
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 | 90,380 | 4/24/2020 | |
3.0.2 | 6,100 | 3/23/2020 | |
3.0.1 | 1,567 | 1/29/2020 | |
3.0.0 | 653 | 11/14/2019 | |
1.3.0 | 2,577 | 4/3/2019 | |
1.2.1 | 1,427 | 3/20/2019 | |
1.2.0 | 746 | 3/19/2019 | |
1.1.42 | 1,843 | 9/28/2018 | |
1.1.40 | 1,386 | 3/28/2018 | |
1.1.38 | 1,085 | 3/28/2018 | |
1.1.0-rc2-36 | 808 | 3/13/2018 | |
1.1.0-rc1-34 | 853 | 3/12/2018 | |
1.1.0-rc1-29 | 790 | 2/27/2018 | |
1.0.1-preview-27 | 845 | 2/10/2018 | |
1.0.1-preview-25 | 878 | 2/5/2018 | |
1.0.1-preview-21 | 704 | 2/1/2018 | |
1.0.1-preview-19 | 837 | 2/1/2018 | |
1.0.0-preview-17 | 731 | 2/1/2018 | |
1.0.0-preview-16 | 829 | 2/1/2018 | |
1.0.0-preview-1 | 1,049 | 2/1/2018 |