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