public void Accept(string connectionId) { var user = InvitedUsers.FirstOrDefault(u => u.ConnectionId == connectionId); if (user != null) { user.Status = GameUserStatus.Joined; } }
public void Decline(string connectionId) { var user = InvitedUsers.FirstOrDefault(u => u.ConnectionId == connectionId); if (user != null) { lock (m_lock) { if (InvitedUsers.Remove(user)) { user.Status = GameUserStatus.NotInvitedYet; } } } }