public void JoinedOnReconnected(ChatUser user) { if (DBSupport.IsIdExist(user.Id)) { DBSupport.UpdateUser(user); } }
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()); }