Beispiel #1
0
        public override void Add(TrackedNetworkConnection connection)
        {
            TrackedNetworkConnection previousConnection = _connectionsById[connection.Id()] = connection;

            if (previousConnection != null)
            {
                throw new System.ArgumentException("Attempt to register a connection with an existing id " + connection.Id() + ". " + "Existing connection: " + previousConnection + ", new connection: " + connection);
            }
        }
Beispiel #2
0
 public override void Remove(TrackedNetworkConnection connection)
 {
     _connectionsById.Remove(connection.Id());
 }