コード例 #1
0
        public IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback cb, object extraData)
        {
            //TODO: resolve how I handle this, this needs to be Async

            var view = ResolveView(context, MvpGlobal.DependencyResolver);

            if (view != null)
            {
                view.Execute(context.Response);
            }
            else
            {
                throw new HttpException(404, "File not found");
            }

            MvpAsyncResult result = new MvpAsyncResult(true,extraData,true, null);
            return result;
        }
コード例 #2
0
        public IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback cb, object extraData)
        {
            //TODO: resolve how I handle this, this needs to be Async

            var view = ResolveView(context, MvpGlobal.DependencyResolver);

            if (view != null)
            {
                view.Execute(context.Response);
            }
            else
            {
                throw new HttpException(404, "File not found");
            }

            MvpAsyncResult result = new MvpAsyncResult(true, extraData, true, null);

            return(result);
        }