private RouteHandler AddImplicitRouteHandler(IManosModule module, string [] patterns, HttpMethod [] methods) { module.Routes.IsImplicit = true; module.Routes.Patterns = patterns; module.Routes.Methods = methods; Routes.Children.Add(module.Routes); return(module.Routes); }
private RouteHandler AddImplicitRouteHandlerForModule(IManosModule module, IMatchOperation [] ops, HttpMethod [] methods) { module.StartInternal(); module.Routes.IsImplicit = true; module.Routes.MatchOps = ops; module.Routes.Methods = methods; Routes.Children.Add(module.Routes); return(module.Routes); }
private RouteHandler AddRouteHandler(IManosModule module, string [] patterns, HttpMethod [] methods) { if (module == null) { throw new ArgumentNullException("module"); } if (patterns == null) { throw new ArgumentNullException("patterns"); } if (methods == null) { throw new ArgumentNullException("methods"); } module.Routes.Patterns = patterns; module.Routes.Methods = methods; Routes.Children.Add(module.Routes); return(module.Routes); }
private RouteHandler AddRouteHandler(IManosModule module, string [] patterns, HttpMethod [] methods) { if (module == null) { throw new ArgumentNullException("module"); } if (patterns == null) { throw new ArgumentNullException("patterns"); } if (methods == null) { throw new ArgumentNullException("methods"); } module.StartInternal(); module.Routes.MatchOps = SimpleOpsForPatterns(patterns); module.Routes.Methods = methods; Routes.Children.Add(module.Routes); return(module.Routes); }
private RouteHandler AddImplicitRouteHandlerForModule(IManosModule module, string [] patterns, HttpMethod [] methods) { return AddImplicitRouteHandlerForModule (module, StringOpsForPatterns (patterns), methods); }
public RouteHandler Trace(IManosModule module, params string [] patterns) { return AddRouteHandler (module, patterns, HttpMethods.TraceMethods); }
// public RouteHandler Trace(string pattern, IManosModule module) { return AddRouteHandler (module, new string [] { pattern }, HttpMethods.TraceMethods); }
public RouteHandler Options(IManosModule module, params string [] patterns) { return AddRouteHandler (module, patterns, HttpMethods.OptionsMethods); }
// public RouteHandler Options(string pattern, IManosModule module) { return AddRouteHandler (module, new string [] { pattern }, HttpMethods.OptionsMethods); }
private RouteHandler AddRouteHandler(IManosModule module, string [] patterns, HttpMethod [] methods) { if (module == null) throw new ArgumentNullException ("module"); if (patterns == null) throw new ArgumentNullException ("patterns"); if (methods == null) throw new ArgumentNullException ("methods"); module.Routes.Patterns = patterns; module.Routes.Methods = methods; Routes.Children.Add (module.Routes); return module.Routes; }
private RouteHandler AddImplicitRouteHandlerForModule(IManosModule module, string [] patterns, HttpMethod [] methods) { return(AddImplicitRouteHandlerForModule(module, StringOpsForPatterns(patterns), methods)); }
public RouteHandler Trace(IManosModule module, params string [] patterns) { return(AddRouteHandler(module, patterns, HttpMethods.TraceMethods)); }
// public RouteHandler Trace(string pattern, IManosModule module) { return(AddRouteHandler(module, new string [] { pattern }, HttpMethods.TraceMethods)); }
public RouteHandler Options(IManosModule module, params string [] patterns) { return(AddRouteHandler(module, patterns, HttpMethods.OptionsMethods)); }
// public RouteHandler Options(string pattern, IManosModule module) { return(AddRouteHandler(module, new string [] { pattern }, HttpMethods.OptionsMethods)); }
private RouteHandler AddImplicitRouteHandlerForModule(IManosModule module, IMatchOperation [] ops, HttpMethod [] methods) { module.StartInternal (); module.Routes.IsImplicit = true; module.Routes.MatchOps = ops; module.Routes.Methods = methods; Routes.Children.Add (module.Routes); return module.Routes; }
private RouteHandler AddRouteHandler(IManosModule module, string [] patterns, HttpMethod [] methods) { if (module == null) throw new ArgumentNullException ("module"); if (patterns == null) throw new ArgumentNullException ("patterns"); if (methods == null) throw new ArgumentNullException ("methods"); module.StartInternal (); module.Routes.MatchOps = SimpleOpsForPatterns (patterns); module.Routes.Methods = methods; Routes.Children.Add (module.Routes); return module.Routes; }
private RouteHandler AddImplicitRouteHandler(IManosModule module, string [] patterns, HttpMethod [] methods) { module.Routes.IsImplicit = true; module.Routes.Patterns = patterns; module.Routes.Methods = methods; Routes.Children.Add (module.Routes); return module.Routes; }