Example #1
0
		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;
		}
Example #2
0
        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);
        }
Example #3
0
		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();
		}
Example #4
0
        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());
        }