public virtual RouteDownstreamHostAndPort FindDownstreamHostAndPort(string host, int port) { return(DownstreamHostAndPorts.FirstOrDefault(c => c.Host == host && c.Port == port)); }
public virtual void RemoveAllDownstreamHostAndPorts() { DownstreamHostAndPorts.Clear(); }
public virtual void RemoveDownstreamHostAndPort(string host, int port) { DownstreamHostAndPorts.RemoveAll(c => c.Host == host && c.Port == port); }
public virtual void AddDownstreamHostAndPort(string host, int port) { DownstreamHostAndPorts.Add(new RouteDownstreamHostAndPort(GlobalConfigurationId, Name, host, port)); }
public virtual void AddDownstreamHostAndPort(string host, int port) { DownstreamHostAndPorts.Add(new ReRouteDownstreamHostAndPort(host, port)); }
public void RemoveAllDownstreamHost() { DownstreamHostAndPorts.Clear(); }
public void RemoveDownstreamHost(string host, int?port) { DownstreamHostAndPorts.RemoveAll(x => x.Host.Equals(host, StringComparison.CurrentCultureIgnoreCase) && x.Port.Equals(port)); }
public void AddDownstreamHost(IGuidGenerator generator, string host, int?port) { DownstreamHostAndPorts.AddIfNotContains(new RouteDownstreamHostAndPort(Id, generator.Create(), host, port)); }