AVCoders.SignalR.Room 2026.11.2

Prefix Reserved
dotnet add package AVCoders.SignalR.Room --version 2026.11.2
                    
NuGet\Install-Package AVCoders.SignalR.Room -Version 2026.11.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AVCoders.SignalR.Room" Version="2026.11.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AVCoders.SignalR.Room" Version="2026.11.2" />
                    
Directory.Packages.props
<PackageReference Include="AVCoders.SignalR.Room" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AVCoders.SignalR.Room --version 2026.11.2
                    
#r "nuget: AVCoders.SignalR.Room, 2026.11.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AVCoders.SignalR.Room@2026.11.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AVCoders.SignalR.Room&version=2026.11.2
                    
Install as a Cake Addin
#tool nuget:?package=AVCoders.SignalR.Room&version=2026.11.2
                    
Install as a Cake Tool

AVCoders.SignalR.Room

SignalR hub and bridge for room state. Part of the AV Coders device library. Targets .NET 8.0 and .NET 10.0.

Install

dotnet add package AVCoders.SignalR.Room

Published to nuget.org. See the repository README for details.

What's inside

  • IRoomHub / RoomHub
  • RoomUiSignalR - registers a RoomManager with the hub and rebroadcasts its power, properties and link status
  • RoomManager - wraps a DeviceBase for power, and holds the room's string property bag and link status
  • RoomLinkStatus - whether the room can start a link, its RoomLinkState (Unlinked, Leading, Following) and its partner room's name

Contract

Hub path convention: /hubs/room. UIs join a group by the manager's name, the same way as the source hub.

Client to server (RoomHub):

Method Notes
JoinGroup(string groupName) Pushes OnPowerStateChanged, OnPropertiesSnapshot and OnRoomLinkChanged to the caller, in that order.
GetGroups() Registered group names.
PowerOn(string group) / PowerOff(string group) Forwarded to the wrapped device.
PowerOnWithArgs(string group, Dictionary<string, string> args) / PowerOffWithArgs(...) Raise RoomManager.OnPowerOnRequested / OnPowerOffRequested with the args; the device isn't powered. null args arrive as an empty dictionary.
LinkRooms(string group) Raises RoomManager.OnLinkRoomsRequested when the room supports linking, is Unlinked and its power is On. Otherwise it logs a warning with the room's link status and power, and does nothing.
UnlinkRooms(string group) Raises RoomManager.OnUnlinkRoomsRequested when the room is Leading or Following, whether or not it supports linking. Otherwise it logs a warning with the same values, and does nothing.

A call for an unknown group is dropped, and is reported as an ongoing unknown-group:<group> issue on RoomHub.Connections: see the AVCoders.SignalR.Connections README. HubAuditFilter records LinkRooms and UnlinkRooms as Room.LinkRooms and Room.UnlinkRooms against the group, like the other commands.

Server to client (IRoomHub):

Method Notes
OnPowerStateChanged(PowerState state) Sent on join and whenever the device's power changes.
OnPropertiesSnapshot(Dictionary<string, string> properties) Sent on join.
OnPropertyChanged(string key, string value) Sent on every RoomManager.SetProperty.
OnRoomLinkChanged(RoomLinkStatus link) Sent on join and whenever SetLinkSupported, SetLinkPartner or SetLinkState changes the status. Setting a value it already has sends nothing.

Commands are fire-and-forget: the hub returns as soon as the work is queued, and the new state comes back through the callbacks.

Room linking

The program owns the link between two rooms. RoomManager carries each room's side of it for UIs, and passes UI requests to the program:

  • SetLinkSupported(true) on a room that can start a link, for example the room that leads a pair.
  • SetLinkPartner(name) on both rooms, with the other room's name. It is sent in every state, so a UI can name the partner before linking.
  • SetLinkState(state) on both rooms whenever the link changes, however it changed.
  • Handle OnLinkRoomsRequested and OnUnlinkRoomsRequested, and report the result with SetLinkState.

A UI offers link while supportsLinking is true, state is Unlinked and power is On, and unlink while state is Leading or Following. A room with no partner keeps the starting status, false, Unlinked and "".

Wire shape

RoomLinkStatus is serialised by the SignalR JSON protocol with camelCase names and the state as an integer (0 Unlinked, 1 Leading, 2 Following):

{
  "supportsLinking": true,
  "state": 1,
  "partner": "Room B"
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.11.2 98 11/20/2026
2026.11.1 96 11/12/2026
2026.10.5 109 10/21/2026
2026.10.4 100 10/21/2026
2026.10.3 90 10/14/2026
2026.10.2 104 10/13/2026
2026.10.1 117 10/6/2026
2026.9.8 123 9/29/2026
2026.9.7 118 9/24/2026
2026.9.6 112 9/18/2026
2026.9.5 117 9/17/2026
2026.9.4 109 9/14/2026
2026.9.2 121 9/2/2026
2026.9.1 122 9/2/2026
2026.8.5 123 8/27/2026
2026.8.4 128 8/26/2026
2026.8.3 123 8/26/2026
2026.8.2 136 8/24/2026
2026.8.1 132 8/11/2026
2026.7.3 134 7/22/2026
Loading failed