Install
dotnet add package Aspire.Hosting.Orleans --version 13.3.2
| Product | Versions |
|---|---|
| .NET |
README
Aspire.Hosting.Orleans library
Provides extension methods and resource definitions for an Aspire AppHost to configure an Orleans cluster.
Getting started
Install the package
In your AppHost project, install the Aspire Orleans library with NuGet:
dotnet add package Aspire.Hosting.Orleans
Usage example
Then, in the AppHost.cs file of AppHost, add a Or resource and consume the connection using the following methods:
var storage = builder.AddAzureStorage("storage").RunAsEmulator();
var clusteringTable = storage.AddTables("clustering");
var grainStorage = storage.AddBlobs("grainstate");
var orleans = builder.AddOrleans("my-app")
.WithClustering(clusteringTable)
.WithGrainStorage("Default", grainStorage);
builder.AddProject<Projects.OrleansServer>("silo")
.WithReference(orleans);
builder.AddProject<Projects.OrleansClient>("frontend")
.WithReference(orleans.AsClient());
Additional documentation
https://learn.microsoft.com/dotnet/orleans/
Feedback & contributing
Changes from Previous Version
No structural changes between v13.3.1 and v13.3.2.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 1 target framework; confirm the exact target used by your application.The published metadata declares 28 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.