![]() |
VOOZH | about |
dotnet add package Microsoft.Orleans.Core --version 10.2.0
NuGet\Install-Package Microsoft.Orleans.Core -Version 10.2.0
<PackageReference Include="Microsoft.Orleans.Core" Version="10.2.0" />
<PackageVersion Include="Microsoft.Orleans.Core" Version="10.2.0" />Directory.Packages.props
<PackageReference Include="Microsoft.Orleans.Core" />Project file
paket add Microsoft.Orleans.Core --version 10.2.0
#r "nuget: Microsoft.Orleans.Core, 10.2.0"
#:package Microsoft.Orleans.Core@10.2.0
#addin nuget:?package=Microsoft.Orleans.Core&version=10.2.0Install as a Cake Addin
#tool nuget:?package=Microsoft.Orleans.Core&version=10.2.0Install as a Cake Tool
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.
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.
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();
For more comprehensive documentation, please refer to:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
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.OrleansRuntime
Core runtime library of Microsoft Orleans that hosts and executes grains within a silo. |
|
|
Microsoft.Orleans.OrleansProviders
Library of built-in persistence and stream providers included in Microsoft Orleans. |
|
|
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. |
Showing the top 13 popular GitHub repositories that depend on Microsoft.Orleans.Core:
| Repository | Stars |
|---|---|
|
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 11, 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
|
|
|
JasonBock/Rocks
A mocking library based on the Compiler APIs (Roslyn + Mocks)
|
|
|
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
|
|
|
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.2.0 | 7,721 | 6/12/2026 |
| 10.1.1-preview.1 | 762 | 5/13/2026 |
| 10.1.0 | 226,322 | 4/14/2026 |
| 10.0.1 | 460,747 | 2/7/2026 |
| 10.0.0 | 116,659 | 1/20/2026 |
| 10.0.0-rc.2 | 9,947 | 12/31/2025 |
| 9.2.1 | 1,019,461 | 7/16/2025 |
| 9.2.0 | 21,958 | 7/14/2025 |
| 9.2.0-preview3 | 10,997 | 6/10/2025 |
| 9.2.0-preview2 | 1,349 | 6/4/2025 |
| 9.2.0-preview1 | 36,879 | 4/4/2025 |
| 9.1.2 | 832,870 | 2/13/2025 |
| 3.8.1 | 22,671 | 4/24/2026 |
| 3.8.0 | 121,909 | 5/6/2025 |
| 3.8.0-preview5 | 1,883 | 5/12/2025 |
| 3.8.0-preview3 | 1,846 | 4/8/2025 |
| 3.8.0-preview2 | 1,764 | 4/4/2025 |
| 3.8.0-preview1 | 1,822 | 3/31/2025 |