![]() |
VOOZH | about |
dotnet add package Microsoft.Orleans.Sdk --version 10.2.0
NuGet\Install-Package Microsoft.Orleans.Sdk -Version 10.2.0
<PackageReference Include="Microsoft.Orleans.Sdk" Version="10.2.0" />
<PackageVersion Include="Microsoft.Orleans.Sdk" Version="10.2.0" />Directory.Packages.props
<PackageReference Include="Microsoft.Orleans.Sdk" />Project file
paket add Microsoft.Orleans.Sdk --version 10.2.0
#r "nuget: Microsoft.Orleans.Sdk, 10.2.0"
#:package Microsoft.Orleans.Sdk@10.2.0
#addin nuget:?package=Microsoft.Orleans.Sdk&version=10.2.0Install as a Cake Addin
#tool nuget:?package=Microsoft.Orleans.Sdk&version=10.2.0Install as a Cake Tool
Microsoft Orleans SDK is a metapackage that includes all the necessary components to build Orleans applications. It provides both client and server functionality, making it easy to get started with Orleans without having to reference individual packages.
To use this package, install it via NuGet:
dotnet add package Microsoft.Orleans.Sdk
// Define a grain interface
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, {greeting}!");
}
}
using Microsoft.Extensions.Hosting;
using Orleans.Configuration;
using Orleans.Hosting;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Threading.Tasks;
namespace ExampleGrains;
// 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<IHelloGrain>("user123");
var response = await grain.SayHello("World");
// Print the result
Console.WriteLine($"Grain response: {response}");
// Keep the host running until the application is shut down
await host.WaitForShutdownAsync();
For more comprehensive documentation, please refer to:
Learn more about Target Frameworks and .NET Standard.
Showing the top 5 NuGet packages that depend on Microsoft.Orleans.Sdk:
| Package | Downloads |
|---|---|
|
Microsoft.Orleans.Client
Collection of Microsoft Orleans libraries and files needed on the client. |
|
|
Microsoft.Orleans.Server
Collection of Microsoft Orleans libraries and files needed on the server. |
|
|
OrleansDashboard
A developer dashboard for Microsoft Orleans |
|
|
Microsoft.Orleans.Reminders
Reminders library for Microsoft Orleans used on the server. |
|
|
OrleansDashboard.Core
A developer dashboard for Microsoft Orleans |
Showing the top 13 popular GitHub repositories that depend on Microsoft.Orleans.Sdk:
| Repository | Stars |
|---|---|
|
microsoft/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
|
|
|
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.
|
|
|
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
|
|
|
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
|
|
|
OrleansContrib/Orleans.Clustering.Kubernetes
Orleans Membership provider for Kubernetes
|
|
|
OrleansContrib/Orleans.Sagas
A distributed saga implementation for Orleans
|
|
|
PiotrJustyna/road-to-orleans
This repository illustrates the road to orleans with practical, real-life examples. From most basic, to more advanced techniques.
|
|
|
shinyorg/templates
dotnet CLI & Visual Studio Templates
|
|
|
OrleansContrib/Orleans.Providers.MongoDB
A MongoDb implementation of the Orleans Providers: Membership, Storage and Reminders.
|
|
|
ss14Starlight/space-station-14
An open source project aimed at creating unique mechanics and a pleasant game atmosphere in the game Space Station 14
|
| Version | Downloads | Last Updated |
|---|---|---|
| 10.2.0 | 7,832 | 6/12/2026 |
| 10.1.1-preview.1 | 383 | 5/13/2026 |
| 10.1.0 | 225,241 | 4/14/2026 |
| 10.0.1 | 459,699 | 2/7/2026 |
| 10.0.0 | 109,997 | 1/20/2026 |
| 10.0.0-rc.2 | 8,201 | 12/31/2025 |
| 9.2.1 | 986,110 | 7/16/2025 |
| 9.2.0 | 21,892 | 7/14/2025 |
| 9.2.0-preview3 | 12,009 | 6/10/2025 |
| 9.2.0-preview2 | 1,332 | 6/4/2025 |
| 9.2.0-preview1 | 36,031 | 4/4/2025 |
| 9.1.2 | 841,301 | 2/13/2025 |
| 9.0.1 | 426,704 | 11/23/2024 |
| 9.0.0 | 56,682 | 11/14/2024 |
| 8.2.0 | 2,730,650 | 7/12/2024 |
| 8.2.0-preview1 | 6,953 | 5/22/2024 |
| 8.1.0 | 627,081 | 4/17/2024 |
| 7.2.7 | 26,493 | 10/15/2024 |