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()); }