Пример #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);
        }