Exemple #1
0
        private void AddHandlerForParameterizedAction(RouteHandler routes, HttpMethodAttribute att, MethodInfo info)
        {
            ParameterizedAction       action = ParameterizedActionFactory.CreateAction(info);
            ParameterizedActionTarget target = new ParameterizedActionTarget(this, info, action);

            AddImplicitRouteHandler(target, att.Patterns, att.Methods);
        }
Exemple #2
0
        private void AddHandlerForAction(RouteHandler routes, HttpMethodAttribute att, MethodInfo info)
        {
            ManosAction action = ActionForMethod(info);

            ActionTarget target = new ActionTarget(action);

            AddImplicitRouteHandler(target, att.Patterns, att.Methods);
        }
Exemple #3
0
        private void AddHandlerForAction(RouteHandler routes, HttpMethodAttribute att, MethodInfo info)
        {
            ManosAction action = ActionForMethod(info);

            ActionTarget target = new ActionTarget(action);

            string[] patterns = null == att.Patterns ? new string [] { "/" + info.Name } : att.Patterns;

            AddImplicitRouteHandlerForTarget(target, OpsForPatterns(patterns, att.MatchType), att.Methods);
        }
Exemple #4
0
        private void AddHandlerForParameterizedAction(RouteHandler routes, HttpMethodAttribute att, MethodInfo info)
        {
            ParameterizedAction action = ParameterizedActionFactory.CreateAction (info);
            ParameterizedActionTarget target = new ParameterizedActionTarget (this, info, action);

            AddImplicitRouteHandlerForTarget (target, att.Patterns, att.Methods, att.MatchType);
        }
Exemple #5
0
        private void AddHandlerForAction(RouteHandler routes, HttpMethodAttribute att, MethodInfo info)
        {
            ManosAction action = ActionForMethod (info);

            ActionTarget target = new ActionTarget (action);

            string[] patterns = null == att.Patterns ? new string [] { "/" + info.Name } : att.Patterns;

            AddImplicitRouteHandlerForTarget (target, OpsForPatterns (patterns, att.MatchType), att.Methods);
        }
Exemple #6
0
        private void AddHandlerForAction(RouteHandler routes, HttpMethodAttribute att, MethodInfo info)
        {
            ManosAction action = ActionForMethod (info);

            ActionTarget target = new ActionTarget (action);
             	AddImplicitRouteHandler (target, att.Patterns, att.Methods);
        }