예제 #1
0
        /// <summary>
        /// Initiates an asynchronous call to the HTTP handler.
        /// </summary>
        /// <param name="context">An <see cref="T:System.Web.HttpContext"></see> object that provides references to intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.</param>
        /// <param name="cb">The <see cref="T:System.AsyncCallback"></see> to call when the asynchronous method call is complete. If cb is null, the delegate is not called.</param>
        /// <param name="extraData">Any extra data needed to process the request.</param>
        /// <returns>
        /// An <see cref="T:System.IAsyncResult"></see> that contains information about the status of the process.
        /// </returns>
        public IAsyncResult BeginProcessRequest(HttpContext context, System.AsyncCallback cb, object extraData)
        {
            ctx = context;
            IntPtr token = System.Security.Principal.WindowsIdentity.GetCurrent().Token;

            AjaxProcHelper        m   = new AjaxProcHelper(p, token);
            AsyncAjaxProcDelegate apd = new AsyncAjaxProcDelegate(m.Run);

            IAsyncResult ar = apd.BeginInvoke(cb, apd);

            return(ar);
        }
예제 #2
0
        /// <summary>
        /// Enables processing of HTTP Web requests by a custom HttpHandler that implements the <see cref="T:System.Web.IHttpHandler"></see> interface.
        /// </summary>
        /// <param name="context">An <see cref="T:System.Web.HttpContext"></see> object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.</param>
        public void ProcessRequest(HttpContext context)
        {
            AjaxProcHelper m = new AjaxProcHelper(p);

            m.Run();
        }
예제 #3
0
        /// <summary>
        /// Initiates an asynchronous call to the HTTP handler.
        /// </summary>
        /// <param name="context">An <see cref="T:System.Web.HttpContext"></see> object that provides references to intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.</param>
        /// <param name="cb">The <see cref="T:System.AsyncCallback"></see> to call when the asynchronous method call is complete. If cb is null, the delegate is not called.</param>
        /// <param name="extraData">Any extra data needed to process the request.</param>
        /// <returns>
        /// An <see cref="T:System.IAsyncResult"></see> that contains information about the status of the process.
        /// </returns>
        public IAsyncResult BeginProcessRequest(HttpContext context, System.AsyncCallback cb, object extraData)
        {
            ctx = context;
            IntPtr token = System.Security.Principal.WindowsIdentity.GetCurrent().Token;

            AjaxProcHelper m = new AjaxProcHelper(p, token);
            AsyncAjaxProcDelegate apd = new AsyncAjaxProcDelegate(m.Run);

            IAsyncResult ar = apd.BeginInvoke(cb, apd);

            return ar;
        }
예제 #4
0
 /// <summary>
 /// Enables processing of HTTP Web requests by a custom HttpHandler that implements the <see cref="T:System.Web.IHttpHandler"></see> interface.
 /// </summary>
 /// <param name="context">An <see cref="T:System.Web.HttpContext"></see> object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.</param>
 public void ProcessRequest(HttpContext context)
 {
     AjaxProcHelper m = new AjaxProcHelper(p);
     m.Run();
 }