예제 #1
0
 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);
 }
예제 #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.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, string [] patterns, HttpMethod [] methods)
 {
     return AddImplicitRouteHandlerForModule (module, StringOpsForPatterns (patterns), methods);
 }
예제 #6
0
 public RouteHandler Trace(IManosModule module, params string [] patterns)
 {
     return AddRouteHandler (module, patterns, HttpMethods.TraceMethods);
 }
예제 #7
0
 //
 public RouteHandler Trace(string pattern, IManosModule module)
 {
     return AddRouteHandler (module, new string [] { pattern }, HttpMethods.TraceMethods);
 }
예제 #8
0
 public RouteHandler Options(IManosModule module, params string [] patterns)
 {
     return AddRouteHandler (module, patterns, HttpMethods.OptionsMethods);
 }
예제 #9
0
 //
 public RouteHandler Options(string pattern, IManosModule module)
 {
     return AddRouteHandler (module, new string [] { pattern }, HttpMethods.OptionsMethods);
 }
예제 #10
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.Routes.Patterns = patterns;
            module.Routes.Methods = methods;
            Routes.Children.Add (module.Routes);
            return module.Routes;
        }
예제 #11
0
 private RouteHandler AddImplicitRouteHandlerForModule(IManosModule module, string [] patterns, HttpMethod [] methods)
 {
     return(AddImplicitRouteHandlerForModule(module, StringOpsForPatterns(patterns), methods));
 }
예제 #12
0
 public RouteHandler Trace(IManosModule module, params string [] patterns)
 {
     return(AddRouteHandler(module, patterns, HttpMethods.TraceMethods));
 }
예제 #13
0
        //

        public RouteHandler Trace(string pattern, IManosModule module)
        {
            return(AddRouteHandler(module, new string [] { pattern }, HttpMethods.TraceMethods));
        }
예제 #14
0
 public RouteHandler Options(IManosModule module, params string [] patterns)
 {
     return(AddRouteHandler(module, patterns, HttpMethods.OptionsMethods));
 }
예제 #15
0
        //

        public RouteHandler Options(string pattern, IManosModule module)
        {
            return(AddRouteHandler(module, new string [] { pattern }, HttpMethods.OptionsMethods));
        }
예제 #16
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;
        }
예제 #17
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;
        }
예제 #18
0
 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;
 }