Microsoft.Orleans.Core 10.0.1

Prefix Reserved
dotnet add package Microsoft.Orleans.Core --version 10.0.1
                    
NuGet\Install-Package Microsoft.Orleans.Core -Version 10.0.1
                    
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="10.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Orleans.Core" Version="10.0.1" />
                    
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 10.0.1
                    
#r "nuget: Microsoft.Orleans.Core, 10.0.1"
                    
#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@10.0.1
                    
#: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=10.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Orleans.Core&version=10.0.1
                    
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 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 (116)

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 (13)

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

Repository Stars
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10, 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)
J-Tech-Japan/Sekiban
Sekiban - an Opinionated Event Sourcing and CQRS Framework using C#. It can store data into Azure Cosmos DB, AWS Dynamo DB or Postgres
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.Providers.MongoDB
A MongoDb implementation of the Orleans Providers: Membership, Storage and Reminders.
OrleansContrib/Orleans.Http
An HTTP API for Microsoft Orleans
Version Downloads Last Updated
10.0.1 47,134 2/7/2026
10.0.0 54,090 1/20/2026
10.0.0-rc.2 5,644 12/31/2025
9.2.1 758,556 7/16/2025
9.2.0 15,277 7/14/2025
9.2.0-preview3 10,545 6/10/2025
9.2.0-preview2 1,317 6/4/2025
9.2.0-preview1 35,846 4/4/2025
9.1.2 754,993 2/13/2025
9.0.1 371,911 11/23/2024
9.0.0 34,530 11/14/2024
8.2.0 1,876,468 7/12/2024
7.2.7 22,276 10/15/2024
3.8.0 93,221 5/6/2025
3.8.0-preview5 1,789 5/12/2025
3.8.0-preview3 1,767 4/8/2025
3.8.0-preview2 1,684 4/4/2025
3.8.0-preview1 1,743 3/31/2025
Loading failed