/// <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); } }
/// <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); } }