コード例 #1
0
 public void RefreshOnlineUsersByConnectionIds(List <string> connectionIds, int userID = 0)
 {
     Clients.Clients(connectionIds).RefreshOnlineUsers();
     if (userID > 0)
     {
         var onlineStatus = _UserRepo.GetUserOnlineStatus(userID);
         if (onlineStatus != null)
         {
             Clients.Clients(connectionIds).RefreshOnlineUserByUserID(userID, onlineStatus.IsOnline, Convert.ToString(onlineStatus.LastUpdationTime));
         }
     }
 }