Back to Orleans

Microsoft Orleans Runtime

src/Orleans.Runtime/README.md

10.1.01.8 KB
Original Source

Microsoft Orleans Runtime

Introduction

Microsoft 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).

Getting Started

To use this package, install it via NuGet:

shell
dotnet add package Microsoft.Orleans.Runtime

This package is automatically included when you reference the Orleans Server metapackage.

Example - Configuring a Silo

csharp
using Microsoft.Extensions.Hosting;
using Orleans.Configuration;
using Orleans.Hosting;

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

await builder.Build().RunAsync();

Documentation

For more comprehensive documentation, please refer to:

Feedback & Contributing