namespace HRM.UI.Realtime { /// /// 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. /// public static class RealtimeGroups { /// Every connection of users working in one payroll type. public static string PayrollType(int payrollTypeId) => "payroll-type:" + payrollTypeId; /// Connections following one background job. public static string Job(string runId) => "job:" + runId; } }