コード例 #1
0
ファイル: RestfulController.cs プロジェクト: jewer/RestMvc
        private string GetResourceOutput(MethodInfo action)
        {
            var controller = GetController();

            using (var proxy = new HttpContextWithReadableOutputStream(controller))
            {
                controller.ActionInvoker.InvokeAction(controller.ControllerContext, action.Name);
                return(proxy.GetResponseText());
            }
        }
コード例 #2
0
ファイル: RestfulController.cs プロジェクト: abombss/RestMvc
        private string GetResourceOutput(MethodInfo action)
        {
            var controller = GetController();

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