예제 #1
0
파일: AsyncModule.cs 프로젝트: nobled/mono
		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;
		}
예제 #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);
        }
예제 #3
0
파일: AsyncHandler.cs 프로젝트: nobled/mono
		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();
		}
예제 #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());
        }