public static RewriteRule Create(RewriteRequestTemplate[] upstreams, RewriteRequestTemplate downstream) { return(new RewriteRule(upstreams, downstream)); }
public static RewriteRule Create(RewriteRequestTemplate upstream, RewriteRequestTemplate downstream) { return(new RewriteRule(new[] { upstream }, downstream)); }
private static RewriteRule Create(RewriteRequestTemplate template) { return(new RewriteRule(new RewriteRequestTemplate[0], template)); }
/// <summary> /// create RouteRewriteRule instance /// </summary> /// <param name="upstreamTemplates">upstream templates</param> /// <param name="downstreamTemplate">downstream template</param> public RewriteRule(IReadOnlyList <RewriteRequestTemplate> upstreamTemplates, RewriteRequestTemplate downstreamTemplate) { Upstreams = upstreamTemplates.ToArray(); Downstream = downstreamTemplate; }
public IRouteRulesBuilder Rewrite(RewriteRequestTemplate template) { Builder.AddRule(new RewriteRule(templateList, template)); return(Builder); }
public RouteRewriteRuleBuilder Match(RewriteRequestTemplate template) { templateList.Add(template); return(this); }