public static void AddClient(IClient client, ClientInfo clientInfo) { lock (ClientsMonitor) { Clients.Add(client, clientInfo); } }
public PeerConnectionManager(SuperPeer superPeer, IClient client) { _superPeer = superPeer; _client = client; _clientInfo = new ClientInfo(client); _client.ConnectionClosedEvent += RepositoryCleaner.ClientOnConnectionClosedEvent; Console.WriteLine("Client " + _client.RemoteEndPoint + " " + _client.LocalEndPoint + " Connected"); }