Microsoft.Orleans.Core 9.2.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.Orleans.Core --version 9.2.0
                    
NuGet\Install-Package Microsoft.Orleans.Core -Version 9.2.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.Core" Version="9.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Orleans.Core" Version="9.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Orleans.Core" />
                    
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.Core --version 9.2.0
                    
#r "nuget: Microsoft.Orleans.Core, 9.2.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.Core@9.2.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.Core&version=9.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Orleans.Core&version=9.2.0
                    
Install as a Cake Tool

Microsoft Orleans Core Library

Introduction

Microsoft Orleans Core is the primary library used by both client and server applications. It provides the runtime components necessary for Orleans applications, including serialization, communication, and the core hosting infrastructure.

Getting Started

To use this package, install it via NuGet:

dotnet add package Microsoft.Orleans.Core

This package is automatically included when you reference the Orleans SDK or the Orleans client/server metapackages.

Example - Configuring a Client

using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Orleans;
using Orleans.Configuration;
using System;
using System.Threading.Tasks;

// Define a grain interface
namespace MyGrainNamespace;

public interface IHelloGrain : IGrainWithStringKey
{
    Task<string> SayHello(string greeting);
}

// Implement the grain interface
public class HelloGrain : Grain, IHelloGrain
{
    public Task<string> SayHello(string greeting)
    {
        return Task.FromResult($"Hello! I got: {greeting}");
    }
}

// Create a client
var builder = Host.CreateApplicationBuilder(args)
    .UseOrleansClient(client =>
    {
        client.UseLocalhostClustering();
    });

var host = builder.Build();
await host.StartAsync();

// Get a reference to a grain and call it
var grain = host.Services.GetRequiredService<IClusterClient>().GetGrain<IHelloGrain>("grain-id");
var response = await grain.SayHello("Hello from client!");

// Print the result
Console.WriteLine($"Response: {response}");

// Keep the host running until the application is shut down
await host.WaitForShutdownAsync();

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 was computed.  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 (108)

Showing the top 5 NuGet packages that depend on Microsoft.Orleans.Core:

Package Downloads
Microsoft.Orleans.Runtime.Abstractions

Library with core types shared between silo and extensions.

Microsoft.Orleans.OrleansProviders

Library of built-in persistence and stream providers included in Microsoft Orleans.

Microsoft.Orleans.OrleansRuntime

Core runtime library of Microsoft Orleans that hosts and executes grains within a silo.

Microsoft.Orleans.Sdk

Microsoft Orleans meta package to bring in the base Orleans packages for all project types.

Microsoft.Orleans.Runtime

Core runtime library of Microsoft Orleans that hosts and executes grains within a silo.

GitHub repositories (12)

Showing the top 12 popular GitHub repositories that depend on Microsoft.Orleans.Core:

Repository Stars
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10 Preview 7, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
dotnet/samples
Sample code referenced by the .NET documentation
dotnetGame/MineCase
Minecraft server based on Orleans
OrleansContrib/OrleansDashboard
:bar_chart: A developer dashboard for Microsoft Orleans
RayTale/Ray
项目停止更新,新项目:https://github.com/RayTale/Vertex
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
JasonBock/Rocks
A mocking library based on the Compiler APIs (Roslyn + Mocks)
ReubenBond/Hagar
Fast, flexible, and version-tolerant serializer for .NET
microsoft/Yams
YAMS (Yet Another Microservices Solution) is a library that can be used to deploy and host microservices in the cloud (e.g. Azure) or on premises
PiotrJustyna/road-to-orleans
This repository illustrates the road to orleans with practical, real-life examples. From most basic, to more advanced techniques.
OrleansContrib/Orleans.Http
An HTTP API for Microsoft Orleans
OrleansContrib/Orleans.Providers.MongoDB
A MongoDb implementation of the Orleans Providers: Membership, Storage and Reminders.
Version Downloads Last Updated
9.2.1 62,274 7/16/2025
9.2.0 4,590 7/14/2025
9.2.0-preview3 4,364 6/10/2025
9.2.0-preview2 938 6/4/2025
9.2.0-preview1 29,272 4/4/2025
9.1.2 468,623 2/13/2025
9.0.1 276,557 11/23/2024
9.0.0 22,026 11/14/2024
8.2.0 950,197 7/12/2024
8.2.0-preview1 6,359 5/22/2024
8.1.0 520,614 4/17/2024
8.1.0-preview3 5,327 3/11/2024
8.1.0-preview2 1,749 2/23/2024
8.1.0-preview1 2,229 2/13/2024
8.0.0 553,027 1/5/2024
8.0.0-rc2 2,627 12/20/2023
8.0.0-rc1 2,537 12/4/2023
7.2.7 11,073 10/15/2024
7.2.6 90,790 3/9/2024
7.2.5 20,767 2/22/2024
7.2.4 396,016 12/2/2023
7.2.3 162,111 11/3/2023
7.2.2 87,456 10/16/2023
7.2.1 627,310 7/11/2023
7.2.0 480,085 7/7/2023
7.1.2 291,337 4/19/2023
7.1.1 117,753 3/23/2023
7.1.0 294,822 2/1/2023
7.0.0 410,195 11/8/2022
7.0.0-rc2 2,539 10/19/2022
4.0.0-preview2 24,752 8/4/2022
4.0.0-preview1 27,414 2/10/2022
3.8.0 33,807 5/6/2025
3.8.0-preview5 965 5/12/2025
3.8.0-preview3 1,005 4/8/2025
3.8.0-preview2 889 4/4/2025
3.8.0-preview1 937 3/31/2025
3.7.2 231,853 5/10/2024
3.7.1 327,222 5/27/2023
3.7.0 162,011 3/23/2023
3.6.5 2,152,559 8/15/2022
3.6.4 57,356 8/10/2022
3.6.3 98,617 8/4/2022
3.6.2 1,563,410 4/15/2022
3.6.1 347,643 4/5/2022
3.6.0 1,091,794 1/20/2022
3.5.1 981,515 11/8/2021
3.5.0 557,204 9/3/2021
3.4.4 24,981 10/4/2021
3.4.3 457,326 6/3/2021
3.4.2 313,533 4/5/2021
3.4.1 384,363 2/3/2021
3.4.0 1,046,293 1/6/2021
3.4.0-rc1 33,782 12/9/2020
3.3.0 657,100 9/9/2020
3.3.0-rc2 40,429 9/2/2020
3.3.0-rc1 6,551 8/19/2020
3.2.2 178,109 7/22/2020
3.2.1 64,346 7/2/2020
3.2.0 253,652 6/4/2020
3.2.0-rc2 11,493 5/20/2020
3.2.0-rc1 7,591 5/7/2020
3.1.7 618,090 5/19/2020
3.1.6 586,083 4/16/2020
3.1.5 20,596 4/9/2020
3.1.4 451,550 3/26/2020
3.1.3 46,805 3/16/2020
3.1.2 64,728 3/5/2020
3.1.0 44,771 2/23/2020
3.1.0-rc3 7,230 2/13/2020
3.1.0-rc2 6,897 2/12/2020
3.1.0-rc1 6,387 2/10/2020
3.0.2 291,254 12/12/2019
3.0.1 41,915 11/27/2019
3.0.0 368,273 10/24/2019
3.0.0-rc2 11,998 10/16/2019
3.0.0-rc1 10,690 10/9/2019
3.0.0-beta1 28,680 8/16/2019
2.4.5 246,161 12/29/2019
2.4.4 96,338 11/27/2019
2.4.3 102,871 10/10/2019
2.4.2 150,499 8/31/2019
2.4.1 74,646 8/14/2019
2.4.0 36,906 8/8/2019
2.3.6 63,548 7/24/2019
2.3.5 158,828 6/14/2019
2.3.4 195,864 6/4/2019
2.3.3 18,747 6/2/2019
2.3.2 115,391 5/9/2019
2.3.1 34,058 4/26/2019
2.3.0 253,336 3/20/2019
2.3.0-rc2 11,596 3/13/2019
2.3.0-rc1 10,677 3/4/2019
2.2.4 35,109 2/25/2019
2.2.0 135,278 12/13/2018
2.2.0-rc1 10,178 12/4/2018
2.2.0-beta1 11,483 10/21/2018
2.1.2 188,445 10/11/2018
2.1.0 46,097 9/28/2018
2.1.0-rc2 10,974 9/21/2018
2.1.0-rc1 10,776 9/14/2018
2.1.0-beta1 18,040 8/27/2018
2.0.3 169,564 5/11/2018
2.0.0 203,196 3/28/2018
2.0.0-rc2 23,516 3/13/2018
2.0.0-rc1 24,498 2/26/2018
2.0.0-beta3 29,695 12/21/2017
2.0.0-beta2 9,940 12/11/2017
2.0.0-beta1 12,342 10/26/2017
1.5.10 37,468 10/10/2019
1.5.9 11,808 9/1/2019
1.5.8 12,685 5/31/2019
1.5.7 12,296 2/28/2019
1.5.6 17,971 9/28/2018
1.5.5 12,535 9/8/2018
1.5.4 26,541 6/13/2018
1.5.3 65,161 12/9/2017
1.5.2 56,985 10/17/2017
1.5.1 26,849 8/28/2017
1.5.0 55,973 7/6/2017
1.5.0-rc 6,668 6/20/2017
1.5.0-beta1 6,782 4/29/2017
1.4.2 21,454 6/9/2017
1.4.1 32,817 3/27/2017
1.4.0 17,837 2/16/2017
1.4.0-beta 5,696 2/1/2017
1.3.1 206,507 11/11/2016
1.3.0 24,112 10/12/2016
1.3.0-beta2 6,347 9/24/2016
1.3.0-beta1 9,792 7/28/2016
1.2.4 9,120 10/5/2016
1.2.3 20,194 7/12/2016
1.2.2 12,543 6/14/2016
1.2.1 9,456 5/18/2016
1.2.0 18,817 5/2/2016
1.2.0-beta 6,060 4/19/2016
1.1.3 16,829 3/9/2016
1.1.2 15,517 1/20/2016
1.1.1 7,641 1/11/2016
1.1.0 14,672 12/14/2015
1.1.0-beta2 5,806 12/3/2015
1.1.0-beta1 5,766 11/3/2015
1.0.10 40,342 9/22/2015
1.0.9 16,313 7/16/2015
1.0.8 11,619 5/27/2015
1.0.7 2,671 5/15/2015
1.0.5 17,072 3/20/2015
1.0.3 4,953 2/27/2015
1.0.0 12,632 2/6/2015