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
                    
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="Microsoft.Orleans.Runtime" Version="10.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Orleans.Runtime" Version="10.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Orleans.Runtime" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.Orleans.Runtime --version 10.4.0
                    
#r "nuget: Microsoft.Orleans.Runtime, 10.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.Orleans.Runtime@10.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.Orleans.Runtime&version=10.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Orleans.Runtime&version=10.4.0
                    
Install as a Cake Tool

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

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed