예제 #1
0
 public void JoinedOnReconnected(ChatUser user)
 {
     if (DBSupport.IsIdExist(user.Id))
     {
         DBSupport.UpdateUser(user);
     }
 }
예제 #2
0
 public void NewUserJoining(ChatUser user)
 {
     if (DBSupport.IsIdExist(user.Id))
     {
         DBSupport.UpdateUser(user);
     }
     else
     {
         DBSupport.AddNewUser(user);
     }
     Clients.Others.newUserJoined(user);
     Clients.Caller.youJoined(DBSupport.GetAllUsers());
     Clients.All.totalUsers(DBSupport.GetUsersCount());
 }