Пример #1
0
 public void Bind(string pattern, RequestHandlerWithArg handler)
 {
     _routes.Add(new RouteWithArg(pattern, handler));
 }
Пример #2
0
 public RouteWithArg(string pattern, RequestHandlerWithArg handler)
 {
     Regex = new Regex(pattern, RegexOptions.Compiled | RegexOptions.IgnoreCase);
     _handler = handler;
 }