Back to Orleans

Microsoft Orleans Core Abstractions

src/Orleans.Core.Abstractions/README.md

10.1.01.8 KB
Original Source

Microsoft Orleans Core Abstractions

Introduction

Microsoft Orleans Core Abstractions is the foundational library for Orleans containing the public programming APIs for implementing grains and client code. This package defines the core abstractions that form the Orleans programming model, including grain interfaces, grain reference interfaces, and attributes.

Getting Started

To use this package, install it via NuGet:

shell
dotnet add package Microsoft.Orleans.Core.Abstractions

This package is a dependency of both client and silo (server) applications and is automatically included when you reference the Orleans SDK or the Orleans client/server metapackages.

Example - Defining a Grain Interface

csharp
using Orleans;

namespace MyGrainInterfaces;

public interface IHelloGrain : IGrainWithStringKey
{
    Task<string> SayHello(string greeting);
}

Documentation

For more comprehensive documentation, please refer to:

Feedback & Contributing