Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
        private void AddDefaultHandlerForParameterizedAction(RouteHandler routes, MethodInfo info)
        {
            ParameterizedAction action = ParameterizedActionFactory.CreateAction (info);
            ParameterizedActionTarget target = new ParameterizedActionTarget (this, info, action);

            AddImplicitRouteHandlerForTarget (target, new string [] { "/" + info.Name }, HttpMethods.RouteMethods, MatchType.String);
        }