コード例 #1
0
 /// <summary>
 /// Associates a Client with the Session.
 /// </summary>
 /// <param name="client">The Client to assocaite with the session.</param>
 public void RegisterClient(IClient client)
 {
     if (_clients.AddIfAbsent(client))
     {
         client.AddClientDestroyedListener(this);
         client.RegisterSession(this);
     }
 }
コード例 #2
0
 /// <summary>
 /// Associates a Client with the Session.
 /// </summary>
 /// <param name="client">The Client to assocaite with the session.</param>
 public void RegisterClient(IClient client)
 {
     if (_clients.AddIfAbsent(client))
     {
         client.AddClientDestroyedListener(this);
         client.RegisterSession(this);
     }
 }