Пример #1
0
 /// <summary>
 /// Tries to get the Client instance under the given userID
 /// </summary>
 /// <param name="userID">The user to get</param>
 /// <param name="client">The output</param>
 /// <returns>Whether the client was found or not</returns>
 public bool TryGetClient(long userID, out Client client)
 {
     return this.mClients.TryGetValue(userID, out client);
 }
Пример #2
0
 /// <summary>
 /// Adds a new client to the list
 /// </summary>
 /// <param name="userID">The id of this user</param>
 /// <param name="client">The client information</param>
 public void Add(long userID, Client client)
 {
     this.mClients.Add(userID, client);
 }