public bool IsMatch(string method, string host, string url) { bool ret = false; foreach (sMethod smt in _methods) { if (smt.Method == method) { ret = smt.IsMatch(host, URLUtility.SplitUrl(url)); break; } } return(ret); }
public void AddMethod(string method, string host, string url) { bool add = true; foreach (sMethod smt in _methods) { if (smt.Method == method) { smt.MergeInPath(host, URLUtility.SplitUrl(url)); add = false; } } if (add) { _methods.Add(new sMethod(method, host, URLUtility.SplitUrl(url))); } }