managedcode-orleans-signalr

Featured

Integrate ManagedCode.Orleans.SignalR for grain-driven SignalR delivery, connection and group routing, offline user queues, and restart-safe state. USE FOR: Orleans backplane setup, grain-to-hub publishing, reconnect, heartbeat, and client-invocation failures. DO NOT USE FOR: ordinary SignalR without Orleans or unrelated persistence. INVOKES: inspect configuration, implement the integration, and validate connected-client delivery.

AI & Automation 483 stars 36 forks Updated today MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
89
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ManagedCode.Orleans.SignalR ## Trigger On - configuring an Orleans SignalR backplane or sending messages from grains - diagnosing connection, group, or user routing across hosts - upgrading offline delivery, heartbeat persistence, or client invocation handling ## Install For a host that runs both the silo and SignalR endpoint: ```bash dotnet add package ManagedCode.Orleans.SignalR.Server --version 10.3.0 dotnet add package ManagedCode.Orleans.SignalR.Client --version 10.3.0 ``` For separate hosts, put Server on the silo and Client on the ASP.NET Core endpoint. Core supplies shared contracts transitively. Keep versions and partition options aligned across participants; preserve central package management when present. ## Configure the Backplane A combined local development host can use the memory provider: ```csharp using ManagedCode.Orleans.SignalR.Server.Extensions; using Microsoft.AspNetCore.SignalR; var builder = WebApplication.CreateBuilder(args); builder.Host.UseOrleans(silo => { silo.UseLocalhostClustering(); silo.ConfigureOrleansSignalR(); silo.AddOrleansSignalRInMemoryStorage(); }); builder.Services.AddSignalR().AddOrleans(options => { options.ConnectionPartitionCount = 4; options.GroupPartitionCount = 4; options.KeepMessageInterval = TimeSpan.FromMinutes(5); options.MaxQueuedMessagesPerUser = 100; }); var app = builder.Build(); app.MapHub<UpdatesHub>("/updates"); app.Run(); public sealed class UpdatesHub : Hub { } ``` Import...

Details

Author
managedcode
Repository
managedcode/dotnet-skills
Created
6 months ago
Last Updated
today
Language
C#
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

managedcode-orleans-graph

Integrate ManagedCode.Orleans.Graph into an Orleans-based .NET application for grain-call policy enforcement, deadlock detection, live-call telemetry, and Mermaid graph diagnostics. USE FOR: ManagedCode.Orleans.Graph integration; allowed grain transitions; Orleans call filters; live policy graphs; reviewing Orleans call-cycle risk. DO NOT USE FOR: generic graph data modeling or traversal unrelated to Orleans calls. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.

483 Updated today
managedcode
Code & Development Featured

signalr

Implement or review SignalR hubs, streaming, reconnection, transport, and real-time delivery patterns in ASP.NET Core applications. USE FOR: building chat, notification, collaboration, or live-update features; debugging hub lifetime, connection state, or transport issues; deciding whether SignalR or another. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.

483 Updated today
managedcode
Code & Development Featured

managedcode-communication

Use ManagedCode.Communication when a .NET application needs explicit result objects, structured errors, and predictable service or API boundaries instead of exception-driven control flow. USE FOR: integrating ManagedCode.Communication into services or APIs; replacing exception-driven result handling with explicit results; reviewing service boundaries that return. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.

483 Updated today
managedcode