Esempio n. 1
0
 internal void RemoveConnection(ClientConnectionBase connection)
 {
     lock (_connectionLock)
     {
         var unused = _addressTally.RemoveTally(connection.GetIpAddress(), connection) && _connections.Remove(connection);
     }
 }
Esempio n. 2
0
 internal void AddConnection(ClientConnectionBase connection)
 {
     lock (_connectionLock)
     {
         var unused = _addressTally.AddTally(connection.GetIpAddress(), connection) && _connections.Add(connection);
     }
 }