Пример #1
0
 internal void Clear()
 {
     foreach (var member in _members.Values)
     {
         OnMemberLeave?.Invoke(member);
         member.Dispose();
     }
     _members.Clear();
 }
Пример #2
0
 internal bool Remove(AccountHandle handle)
 {
     if (_members.TryGetValue(handle, out LobbyMember member))
     {
         _members.Remove(handle);
         OnMemberLeave?.Invoke(member);
         member.Dispose();
         return(true);
     }
     return(false);
 }