Exemplo n.º 1
0
 public virtual RouteUpstreamHttpMethod FindUpstreamHttpMethod(string method)
 {
     return(UpstreamHttpMethods.FirstOrDefault(c => c.Method == method));
 }
Exemplo n.º 2
0
 public virtual void RemoveAllUpstreamHttpMethods()
 {
     UpstreamHttpMethods.Clear();
 }
Exemplo n.º 3
0
 public virtual void RemoveUpstreamHttpMethod(string method)
 {
     UpstreamHttpMethods.RemoveAll(c => c.Method == method);
 }
Exemplo n.º 4
0
 public virtual void AddUpstreamHttpMethod(string method)
 {
     UpstreamHttpMethods.Add(new RouteUpstreamHttpMethod(GlobalConfigurationId, Name, method));
 }
Exemplo n.º 5
0
 public virtual void AddUpstreamHttpMethod(string method)
 {
     UpstreamHttpMethods.Add(new ReRouteUpstreamHttpMethod(method));
 }
Exemplo n.º 6
0
 public void RemoveAllUpstreamHttpMethod()
 {
     UpstreamHttpMethods.Clear();
 }
Exemplo n.º 7
0
 public void RemoveUpstreamHttpMethod(string method)
 {
     UpstreamHttpMethods.RemoveAll(x => x.Method.Equals(method, StringComparison.CurrentCultureIgnoreCase));
 }
Exemplo n.º 8
0
 public void AddUpstreamHttpMethod(IGuidGenerator generator, string method)
 {
     UpstreamHttpMethods.AddIfNotContains(new RouteUpstreamHttpMethod(Id, generator.Create(), method));
 }