Microsoft.Orleans.Server 9.2.0-preview2

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

Microsoft Orleans Server

Introduction

Microsoft Orleans Server is a metapackage that includes all the necessary components to run an Orleans silo (server). It simplifies the process of setting up an Orleans server by providing a single package reference rather than requiring you to reference multiple packages individually.

Getting Started

To use this package, install it via NuGet:

dotnet add package Microsoft.Orleans.Server

Example - Creating an Orleans Silo Host

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

// Define a grain interface
namespace MyGrainNamespace;

public interface IMyGrain : IGrainWithStringKey
{
    Task<string> DoSomething();
}

// Implement the grain interface
public class MyGrain : Grain, IMyGrain
{
    public Task<string> DoSomething()
    {
        return Task.FromResult("Done something!");
    }
}


// Create the host
var builder = Host.CreateApplicationBuilder(args)
    .UseOrleans(siloBuilder =>
    {
        siloBuilder
            .UseLocalhostClustering();
    });

// Start the host
var host = builder.Build();
await host.StartAsync();

// Get a reference to a grain and call it
var client = host.Services.GetRequiredService<IClusterClient>();
var grain = client.GetGrain<IMyGrain>("my-grain-id");
var result = await grain.DoSomething();

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

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

Documentation

For more comprehensive documentation, please refer to:

Feedback & Contributing

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (102)

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

Package Downloads
Orleans.Clustering.Redis

Microsoft Orleans clustering provider backed by Redis

Orleans.Persistence.Redis

Microsoft Orleans persistence provider backed by Redis

SignalR.Orleans

Orleans backplane for SignalR Core.

Orleans.Streams.Utils

Streaming utilities for Microsoft Orleans.

Orleans.Reminders.Redis

Microsoft Orleans reminder provider backed by Redis

GitHub repositories (24)

Showing the top 20 popular GitHub repositories that depend on Microsoft.Orleans.Server:

Repository Stars
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10 RC 1, 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/aspire
Tools, templates, and packages to accelerate building observable, production-ready apps
dotnet/samples
Sample code referenced by the .NET documentation
Dotnet-Boxed/Templates
.NET project templates with batteries included, providing the minimum amount of code required to get you going faster.
microsoft/dotnet-podcasts
.NET reference application shown at .NET Conf featuring ASP.NET Core, Blazor, .NET MAUI, Microservices, Orleans, Playwright, and more!
SteveDunn/Vogen
A semi-opinionated library which is a source generator and a code analyser. It Source generates Value Objects
dotnet/aspire-samples
dotnetGame/MineCase
Minecraft server based on Orleans
OrleansContrib/Orleankka
Functional API for Microsoft Orleans http://orleanscontrib.github.io/Orleankka
Maarten88/rrod
Exploring a new web architecture with React, Redux, Orleans and Dotnet Core
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
OrleansContrib/SignalR.Orleans
SignalR backend based on Orleans.
RayTale/Vertex
Vertex is a distributed, ultimately consistent, event traceable cross platform framework based on Orleans, which is used to build high-performance, high throughput, low latency, scalable distributed applications
microsoft/project-oagents
Experimental AI Agents Framework
EasyAbp/EShop
An abp application module group that provides basic e-shop service.
Samsung/Tizen.NET
Welcome to Tizen .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
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
OrleansContrib/Orleans.Clustering.Kubernetes
Orleans Membership provider for Kubernetes
thisisnabi/Shortener
Shortener Url as a service in ASP.NET Core and Actor Model
Version Downloads Last Updated
9.2.1 86,189 7/16/2025
9.2.0 4,106 7/14/2025
9.2.0-preview3 1,369 6/10/2025
9.2.0-preview2 301 6/4/2025
9.2.0-preview1 9,875 4/4/2025
9.1.2 326,800 2/13/2025
9.0.1 177,657 11/23/2024
9.0.0 23,998 11/14/2024
8.2.0 507,721 7/12/2024
8.2.0-preview1 607 5/22/2024
8.1.0 340,173 4/17/2024
8.1.0-preview3 3,371 3/11/2024
8.1.0-preview2 863 2/23/2024
8.1.0-preview1 1,690 2/13/2024
8.0.0 290,542 1/5/2024
8.0.0-rc2 1,246 12/20/2023
8.0.0-rc1 914 12/4/2023
7.2.7 5,789 10/15/2024
7.2.6 49,306 3/9/2024
7.2.5 13,861 2/22/2024
7.2.4 138,905 12/2/2023
7.2.3 110,601 11/3/2023
7.2.2 49,915 10/16/2023
7.2.1 389,473 7/11/2023
7.2.0 41,493 7/7/2023
7.1.2 195,119 4/19/2023
7.1.1 81,186 3/23/2023
7.1.0 94,565 2/1/2023
7.0.0 209,803 11/8/2022
7.0.0-rc2 974 10/19/2022
4.0.0-preview2 10,676 8/4/2022
4.0.0-preview1 7,988 2/10/2022
3.8.0 2,582 5/6/2025
3.8.0-preview5 287 5/12/2025
3.8.0-preview3 278 4/8/2025
3.8.0-preview2 220 4/4/2025
3.8.0-preview1 260 3/31/2025
3.7.2 32,799 5/10/2024
3.7.1 119,973 5/27/2023
3.7.0 106,040 3/23/2023
3.6.5 651,184 8/15/2022
3.6.4 20,080 8/10/2022
3.6.3 30,550 8/4/2022
3.6.2 568,534 4/15/2022
3.6.1 74,198 4/5/2022
3.6.0 236,066 1/20/2022
3.5.1 256,758 11/8/2021
3.5.0 214,086 9/3/2021
3.4.4 9,899 10/4/2021
3.4.3 100,314 6/3/2021
3.4.2 125,882 4/5/2021
3.4.1 157,548 2/3/2021
3.4.0 23,798 1/6/2021
3.4.0-rc1 592 12/9/2020
3.3.0 178,395 9/9/2020
3.3.0-rc2 1,982 9/2/2020
3.3.0-rc1 668 8/19/2020
3.2.2 28,453 7/22/2020
3.2.1 16,888 7/2/2020
3.2.0 37,513 6/4/2020
3.2.0-rc2 3,583 5/20/2020
3.2.0-rc1 823 5/7/2020
3.1.7 17,011 5/19/2020
3.1.6 27,467 4/16/2020
3.1.5 3,859 4/9/2020
3.1.4 22,019 3/26/2020
3.1.3 10,550 3/16/2020
3.1.2 16,013 3/5/2020
3.1.0 6,497 2/23/2020
3.1.0-rc3 912 2/13/2020
3.1.0-rc2 791 2/12/2020
3.1.0-rc1 752 2/10/2020
3.0.2 58,068 12/12/2019
3.0.1 7,057 11/27/2019
3.0.0 33,246 10/24/2019
3.0.0-rc2 1,290 10/16/2019
3.0.0-rc1 1,383 10/9/2019
3.0.0-beta1 2,504 8/16/2019
2.4.5 7,363 12/29/2019
2.4.4 53,872 11/27/2019
2.4.3 56,396 10/10/2019
2.4.2 28,935 8/31/2019
2.4.1 16,187 8/14/2019
2.4.0 4,936 8/8/2019
2.3.6 13,441 7/24/2019
2.3.5 54,914 6/14/2019
2.3.4 17,608 6/4/2019
2.3.3 1,375 6/2/2019
2.3.2 26,920 5/9/2019
2.3.1 14,526 4/26/2019
2.3.0 60,885 3/20/2019
2.3.0-rc2 2,148 3/13/2019
2.3.0-rc1 971 3/4/2019
2.2.4 8,619 2/25/2019
2.2.3 20,023 1/17/2019
2.2.0 21,471 12/13/2018
2.2.0-rc1 1,166 12/4/2018
2.2.0-beta1 1,634 10/21/2018
2.1.2 25,353 10/11/2018
2.1.0 7,155 9/28/2018
2.1.0-rc2 1,537 9/21/2018
2.1.0-rc1 1,618 9/14/2018
2.1.0-beta1 7,374 8/27/2018
2.0.4 22,371 7/20/2018
2.0.3 28,206 5/31/2018
2.0.0 10,607 3/28/2018
2.0.0-rc2 2,926 3/13/2018
2.0.0-rc1 2,089 2/26/2018
2.0.0-beta3 5,480 12/21/2017
2.0.0-beta2 1,619 12/11/2017
2.0.0-beta1 2,878 10/26/2017
1.5.10 10,842 10/10/2019
1.5.9 1,022 9/1/2019
1.5.8 1,112 5/31/2019
1.5.7 1,133 2/28/2019
1.5.6 1,883 9/28/2018
1.5.5 1,593 9/8/2018
1.5.4 3,924 6/13/2018
1.5.3 15,533 12/9/2017
1.5.2 17,848 10/17/2017
1.5.1 6,605 8/28/2017
1.5.0 3,722 7/6/2017
1.5.0-rc 1,455 6/20/2017
1.5.0-beta1 1,415 4/29/2017
1.4.2 4,373 6/9/2017
1.4.1 4,800 3/27/2017
1.4.0 4,734 2/16/2017
1.4.0-beta 1,350 2/1/2017
1.3.1 5,206 11/11/2016
1.3.0 3,869 10/12/2016
1.3.0-beta2 1,679 9/24/2016
1.3.0-beta1 2,036 7/28/2016
1.2.4 2,908 10/5/2016
1.2.3 6,333 7/12/2016
1.2.2 2,794 6/14/2016
1.2.1 2,291 5/18/2016
1.2.0 5,268 5/2/2016
1.2.0-beta 1,446 4/19/2016
1.1.3 4,878 3/9/2016
1.1.2 3,722 1/20/2016
1.1.1 2,345 1/11/2016
1.1.0 3,692 12/14/2015
1.1.0-beta2 1,624 12/3/2015
1.1.0-beta1 1,491 11/3/2015
1.0.10 4,479 9/22/2015
1.0.9 3,844 7/16/2015
1.0.8 5,363 5/27/2015
1.0.7 2,046 5/15/2015
1.0.5 2,753 3/20/2015
1.0.3 2,239 2/27/2015
1.0.0 6,309 2/6/2015