HRM-10/HRM.UI/Realtime/RealtimeGroups.cs
2026-11-30 13:35:21 +06:00

16 lines
666 B
C#

namespace HRM.UI.Realtime
{
/// <summary>
/// The one place SignalR group names are built, so a publisher and the hub can never disagree on a name.
/// Clients never choose a group: the hub adds a connection to a group only after checking the caller's claims.
/// </summary>
public static class RealtimeGroups
{
/// <summary>Every connection of users working in one payroll type.</summary>
public static string PayrollType(int payrollTypeId) => "payroll-type:" + payrollTypeId;
/// <summary>Connections following one background job.</summary>
public static string Job(string runId) => "job:" + runId;
}
}