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); } }
public override void Remove(TrackedNetworkConnection connection) { _connectionsById.Remove(connection.Id()); }