Beispiel #1
0
 /// <summary>
 /// Adds a user
 /// </summary>
 public void Add(string username, MasterClientPeer peer)
 {
     lock (this.syncRoot)
         this.collection.Add(username, peer);
 }
Beispiel #2
0
 /// <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));
 }
Beispiel #3
0
 public void OnClientDisconnected(MasterClientPeer peer)
 {
     this.clients.OnDisconnect(peer);
 }