/// <summary> /// Adds a user /// </summary> public void Add(string username, MasterClientPeer peer) { lock (this.syncRoot) this.collection.Add(username, peer); }
/// <summary> /// Tries to retrieve a User /// </summary> public bool TryGetValue(string username, out MasterClientPeer peer) { lock (this.syncRoot) return(this.collection.TryGetValue(username, out peer)); }
public void OnClientDisconnected(MasterClientPeer peer) { this.clients.OnDisconnect(peer); }