public static RegexUrlPolicy Create(Func<ActionCall, bool> matchFilter, Action<RegexUrlPolicyDsl> configure) { var configuration = new Configuration(); if (configure != null) configure(new RegexUrlPolicyDsl(configuration)); return new RegexUrlPolicy(matchFilter, configuration); }
public RegexUrlPolicy(Func<ActionCall, bool> matchFilter, Configuration configuration) { _matchFilter = matchFilter; _configuration = configuration; }