Core runtime library of Microsoft Orleans that hosts and executes grains within a silo.
$ dotnet add package Microsoft.Orleans.RuntimeMicrosoft Orleans Runtime is the core server-side component of Orleans. It hosts and executes grains, manages grain lifecycles, and provides all the runtime services necessary for a functioning Orleans server (silo).
To use this package, install it via NuGet:
dotnet add package Microsoft.Orleans.Runtime
This package is automatically included when you reference the Orleans Server metapackage.
using Microsoft.Extensions.Hosting;
using Orleans.Configuration;
using Orleans.Hosting;
var builder = Host.CreateApplicationBuilder(args)
.UseOrleans(siloBuilder =>
{
siloBuilder
.UseLocalhostClustering();
});
await builder.Build().RunAsync();
For more comprehensive documentation, please refer to: