IAsyncResult BeginPreHandlerExecute(Object source, EventArgs e, AsyncCallback cb, Object extraData) { ((HttpApplication) source).Context.Response.Write("AsyncModule.BeginPreHandlerExecute()<br>\n"); AsynchOperation asynch = new AsynchOperation(cb, _app.Context, extraData); asynch.StartAsyncWork(); return asynch; }
IAsyncResult BeginPreHandlerExecute(Object source, EventArgs e, AsyncCallback cb, Object extraData) { ((HttpApplication)source).Context.Response.Write("AsyncModule.BeginPreHandlerExecute()<br>\n"); AsynchOperation asynch = new AsynchOperation(cb, _app.Context, extraData); asynch.StartAsyncWork(); return(asynch); }
public IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) { AsynchOperation asynch = new AsynchOperation(cb, context, null); asynch.StartAsyncWork(); context.Response.Write("AsyncHandler.BeginProcessRequest<br>\n"); context.Response.Flush(); //Signal the application that asynchronous //processing is being performed. SomeResult asynchForBegin = new SomeResult(); //Processing is not synchronous. asynchForBegin.SetSynch(false); //Processing is not complete. asynchForBegin.SetCompleted(false); _context = context; return new SomeResult(); }
public IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) { AsynchOperation asynch = new AsynchOperation(cb, context, null); asynch.StartAsyncWork(); context.Response.Write("AsyncHandler.BeginProcessRequest<br>\n"); context.Response.Flush(); //Signal the application that asynchronous //processing is being performed. SomeResult asynchForBegin = new SomeResult(); //Processing is not synchronous. asynchForBegin.SetSynch(false); //Processing is not complete. asynchForBegin.SetCompleted(false); _context = context; return(new SomeResult()); }