Microsoft.Orleans.Runtime
10.4.0
Prefix Reserved
dotnet add package Microsoft.Orleans.Runtime --version 10.4.0
NuGet\Install-Package Microsoft.Orleans.Runtime -Version 10.4.0
<PackageReference Include="Microsoft.Orleans.Runtime" Version="10.4.0" />
<PackageVersion Include="Microsoft.Orleans.Runtime" Version="10.4.0" />
<PackageReference Include="Microsoft.Orleans.Runtime" />
paket add Microsoft.Orleans.Runtime --version 10.4.0
#r "nuget: Microsoft.Orleans.Runtime, 10.4.0"
#:package Microsoft.Orleans.Runtime@10.4.0
#addin nuget:?package=Microsoft.Orleans.Runtime&version=10.4.0
#tool nuget:?package=Microsoft.Orleans.Runtime&version=10.4.0
Microsoft Orleans Runtime
Introduction
Microsoft Orleans Runtime is the core server-side component of Orleans. It hosts and executes grains, manages grain lifecycles, and provides all the runtime services necessary for a functioning Orleans server (silo).
Getting Started
To use this package, install it via NuGet:
dotnet add package Microsoft.Orleans.Runtime
This package is automatically included when you reference the Orleans Server metapackage.
Grain construction
Generated grain registrations preserve public constructor metadata for activation in trimmed and NativeAOT applications. The default grain activator uses dependency injection to select a public constructor, honors ActivatorUtilitiesConstructorAttribute, and resolves dependencies from each activation's service scope. Manual grain configuration uses GrainTypeOptions.AddClass(typeof(MyGrain)); manual manifest configuration uses TypeManifestOptions.AddInterfaceImplementation(typeof(MyGrain)). Both preserve the same constructor metadata. Direct Classes collection access and construction of a GrainClassMap from an arbitrary dictionary require callers to preserve constructors separately and emit trimming warnings.
File grain storage
The runtime includes a file-based grain storage provider for local, single-silo development and testing. It stores one binary file per grain state record and uses persisted ETags for optimistic concurrency.
using Orleans.Persistence.FileStorage;
siloBuilder.AddFileGrainStorage(
options: options => options.RootDirectory = Path.Combine(
AppContext.BaseDirectory,
"Orleans",
"GrainState"));
Example - Configuring a Silo
using Microsoft.Extensions.Hosting;
using Orleans.Configuration;
using Orleans.Hosting;
var builder = Host.CreateApplicationBuilder(args)
.UseOrleans(siloBuilder =>
{
siloBuilder
.UseLocalhostClustering();
});
await builder.Build().RunAsync();
Documentation
For more comprehensive documentation, please refer to:
Feedback & Contributing
- If you have any issues or would like to provide feedback, please open an issue on GitHub
- Join our community on Discord
- Follow the @msftorleans Twitter account for Orleans announcements
- Contributions are welcome! Please review our contribution guidelines
- This project is licensed under the MIT license
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.AspNetCore.Connections.Abstractions (>= 10.0.3)
- Microsoft.CodeAnalysis.Analyzers (>= 5.9.0)
- Microsoft.CodeAnalysis.Common (>= 5.0.0)
- Microsoft.CodeAnalysis.Workspaces.Common (>= 5.0.0)
- Microsoft.Extensions.Configuration (>= 10.0.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.5)
- Microsoft.Extensions.Configuration.Json (>= 10.0.5)
- Microsoft.Extensions.DependencyInjection (>= 10.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.DependencyModel (>= 10.0.5)
- Microsoft.Extensions.Hosting (>= 10.0.5)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Logging (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Logging.Console (>= 10.0.5)
- Microsoft.Extensions.Logging.Debug (>= 10.0.5)
- Microsoft.Extensions.ObjectPool (>= 10.0.5)
- Microsoft.Extensions.Options (>= 10.0.5)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.5)
- Microsoft.Orleans.Core (>= 10.4.0)
- Newtonsoft.Json (>= 13.0.4)
- Polly (>= 8.6.4)
- Polly.Extensions (>= 8.6.5)
- System.IO.Hashing (>= 10.0.3)
- System.Memory.Data (>= 10.0.3)
-
net8.0
- Microsoft.AspNetCore.Connections.Abstractions (>= 8.0.24)
- Microsoft.CodeAnalysis.Analyzers (>= 5.9.0)
- Microsoft.CodeAnalysis.Common (>= 4.5.0)
- Microsoft.CodeAnalysis.Workspaces.Common (>= 4.5.0)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.Configuration.Json (>= 8.0.1)
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.DependencyModel (>= 8.0.2)
- Microsoft.Extensions.Hosting (>= 8.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Logging (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- Microsoft.Extensions.Logging.Console (>= 8.0.1)
- Microsoft.Extensions.Logging.Debug (>= 8.0.1)
- Microsoft.Extensions.ObjectPool (>= 8.0.24)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Orleans.Core (>= 10.4.0)
- Newtonsoft.Json (>= 13.0.4)
- Polly (>= 8.6.4)
- Polly.Extensions (>= 8.6.5)
- System.IO.Hashing (>= 10.0.3)
- System.IO.Pipelines (>= 8.0.0)
- System.Memory.Data (>= 8.0.1)
NuGet packages (127)
Showing the top 5 NuGet packages that depend on Microsoft.Orleans.Runtime:
| Package | Downloads |
|---|---|
|
Microsoft.Orleans.Server
Collection of Microsoft Orleans libraries and files needed on the server. |
|
|
Microsoft.Orleans.Reminders
Reminders library for Microsoft Orleans used on the server. |
|
|
Microsoft.Orleans.Persistence.Memory
In-memory storage for Microsoft Orleans |
|
|
OrleansDashboard.Core
A developer dashboard for Microsoft Orleans |
|
|
Microsoft.Orleans.Clustering.AzureStorage
Microsoft Orleans clustering provider backed by Azure Table Storage |
GitHub repositories (8)
Showing the top 8 popular GitHub repositories that depend on Microsoft.Orleans.Runtime:
| Repository | Stars |
|---|---|
|
dotnet/samples
Sample code referenced by the .NET documentation
|
|
|
OrleansContrib/OrleansDashboard
:bar_chart: A developer dashboard for Microsoft Orleans
|
|
|
OrleansContrib/Orleankka
Functional API for Microsoft Orleans http://orleanscontrib.github.io/Orleankka
|
|
|
microsoft/project-oagents
Experimental AI Agents Framework
|
|
|
HOBOBO/AbilityKit
面向中大型战斗项目设计的模块化游戏战斗工具集,提供数据驱动的技能管线、事件触发规则、战斗运行时与多种网络同步能力。可用于构建技能系统等。核心逻辑采用纯 C#,可按需组合并运行于 Unity、服务器及测试环境。
|
|
|
OrleansContrib/Orleans.Clustering.Kubernetes
Orleans Membership provider for Kubernetes
|
|
|
managedcode/Storage
Storage library provides a universal interface for accessing and manipulating data in different cloud blob storage providers
|
|
|
managedcode/Communication
Result pattern for .NET that replaces exceptions with type-safe return values. Features railway-oriented programming, ASP.NET Core integration, RFC 7807 Problem Details, and built-in pagination. Designed for production systems requiring explicit error handling without the overhead of throwing exceptions.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 10.4.0 | 426 | 10/3/2026 |
| 10.3.1 | 189,524 | 8/28/2026 |
| 10.3.0 | 7,232 | 8/27/2026 |
| 10.3.0-rc.1 | 703 | 8/25/2026 |
| 10.2.2 | 216,115 | 7/21/2026 |
| 10.2.2-rc.2 | 5,431 | 7/15/2026 |
| 10.2.2-rc.1 | 359 | 7/10/2026 |
| 10.2.1 | 184,926 | 6/24/2026 |
| 10.2.1-preview.1 | 790 | 6/19/2026 |
| 10.2.0 | 68,378 | 6/12/2026 |
| 10.1.1-preview.1 | 1,033 | 5/13/2026 |
| 10.1.0 | 491,410 | 4/14/2026 |
| 10.0.1 | 799,764 | 2/7/2026 |
| 10.0.0 | 176,969 | 1/20/2026 |
| 10.0.0-rc.2 | 12,571 | 12/31/2025 |
| 9.2.1 | 1,027,259 | 7/16/2025 |
| 9.2.0 | 25,094 | 7/14/2025 |
| 9.2.0-preview3 | 10,964 | 6/10/2025 |
| 9.2.0-preview2 | 1,349 | 6/4/2025 |
| 9.2.0-preview1 | 23,308 | 4/4/2025 |