示例#1
0
        private RouteHandler AddImplicitRouteHandler(IManosModule module, string [] patterns, HttpMethod [] methods)
        {
            module.StartInternal();

            module.Routes.IsImplicit = true;
            module.Routes.Patterns   = patterns;
            module.Routes.Methods    = methods;
            Routes.Children.Add(module.Routes);
            return(module.Routes);
        }
示例#2
0
        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);
        }
示例#3
0
        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.Patterns = patterns;
            module.Routes.Methods  = methods;
            Routes.Children.Add(module.Routes);
            return(module.Routes);
        }
示例#4
0
        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;
        }
示例#5
0
        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;
        }
示例#6
0
        private RouteHandler AddImplicitRouteHandler(IManosModule module, string [] patterns, HttpMethod [] methods)
        {
            module.StartInternal ();

            module.Routes.IsImplicit = true;
            module.Routes.Patterns = patterns;
            module.Routes.Methods = methods;
            Routes.Children.Add (module.Routes);
            return module.Routes;
        }