Ejemplo n.º 1
0
        private string GetResourceOutput(MethodInfo action)
        {
            var controller = GetController();

            using (var proxy = new HttpContextWithReadableOutputStream(controller))
            {
                controller.ActionInvoker.InvokeAction(controller.ControllerContext, action.Name);
                return(proxy.GetResponseText());
            }
        }
Ejemplo n.º 2
0
        private string GetResourceOutput(MethodInfo action)
        {
            var controller = GetController();

            using (var proxy = new HttpContextWithReadableOutputStream(controller))
            {
                controller.ActionInvoker.InvokeAction(controller.ControllerContext, action.Name);
                return proxy.GetResponseText();
            }
        }