Пример #1
0
 private static void NotifySignalRClients(HashSet <Lite <IUserEntity> >?hashSet)
 {
     foreach (var user in hashSet ?? Connections.AllKeys())
     {
         foreach (var connectionId in Connections.GetConnections(user))
         {
             try
             {
                 AlertsServer.AlertsHub.Clients.Client(connectionId).AlertsChanged();
             }
             catch (Exception ex)
             {
                 ex.LogException();
             }
         }
     }
 }