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