public virtual void RemoveDownstreamHostAndPort(string host, int port) { DownstreamHostAndPorts.RemoveAll(c => c.Host == host && c.Port == port); }
public void RemoveDownstreamHost(string host, int?port) { DownstreamHostAndPorts.RemoveAll(x => x.Host.Equals(host, StringComparison.CurrentCultureIgnoreCase) && x.Port.Equals(port)); }