示例#1
0
        public IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback cb, object extraData)
        {
            var reqState = new AsyncRequestState(context, cb, extraData);

            _processRequest = OnProcessRequest;
            new Thread(new AsyncRequest(reqState).ProcessRequest).Start(_processRequest);
            return(reqState);
        }
示例#2
0
 public AsyncRequest(AsyncRequestState ars)
 {
     _asyncRequestState = ars;
 }