/// <summary> /// Ends processing of an image request. /// </summary> /// <param name="result"> /// <see cref="T:System.IAsyncResult"/> obtained in a previous call to /// <b>BeginProcessRequest</b>. /// </param> void IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) { // Sanity checks if (result == null) { throw new ArgumentNullException("result"); } AsyncHandler handler = result as AsyncHandler; if (handler == null) { throw new ArgumentException("Not IAsyncResult from this handler."); } // Finish request processing handler.EndAsyncWork(); }