public override bool InvokeAction(ControllerContext controllerContext, string actionName) {
            var httpContext = controllerContext.HttpContext;
            var controllerActionInvoker = _invoker as ControllerActionInvoker;
            if (controllerActionInvoker != null) {
                var detailer = new ControllerDetailer();
                httpContext.Response.Write(detailer.GetControllerDetails(GetControllerDescriptor(controllerContext), controllerContext.RequestContext));
                return true;
            }

            return _invoker.InvokeAction(controllerContext, actionName);
        }
Exemplo n.º 2
0
        public override bool InvokeAction(ControllerContext controllerContext, string actionName)
        {
            var httpContext             = controllerContext.HttpContext;
            var controllerActionInvoker = _invoker as ControllerActionInvoker;

            if (controllerActionInvoker != null)
            {
                var detailer = new ControllerDetailer();
                httpContext.Response.Write(detailer.GetControllerDetails(GetControllerDescriptor(controllerContext), controllerContext.RequestContext));
                return(true);
            }

            return(_invoker.InvokeAction(controllerContext, actionName));
        }