HttpTaskAsyncHandler HttpTaskAsyncHandler HttpTaskAsyncHandler HttpTaskAsyncHandler Class

定義

提供衍生工作處理常式類別可實作的方法,以便處理非同步工作。Provides methods that a derived task handler class can implement in order to process an asynchronous task.

public ref class HttpTaskAsyncHandler abstract : System::Web::IHttpAsyncHandler
public abstract class HttpTaskAsyncHandler : System.Web.IHttpAsyncHandler
type HttpTaskAsyncHandler = class
    interface IHttpAsyncHandler
    interface IHttpHandler
Public MustInherit Class HttpTaskAsyncHandler
Implements IHttpAsyncHandler
繼承
HttpTaskAsyncHandlerHttpTaskAsyncHandlerHttpTaskAsyncHandlerHttpTaskAsyncHandler
實作

備註

HttpTaskAsyncHandler類別會提供一個簡化的方式來處理非同步工作,而不必實作BeginProcessRequestEndProcessRequest方法。The HttpTaskAsyncHandler class provides a simplified way to handle asynchronous tasks without having to implement the BeginProcessRequest and EndProcessRequest methods. 若要建立非同步工作的處理常式,您可以覆寫ProcessRequestAsync處理程式碼的方法,並實作自訂的工作。To create a handler for an asynchronous task, you can override the ProcessRequestAsync method and implement custom task handling code.

建構函式

HttpTaskAsyncHandler() HttpTaskAsyncHandler() HttpTaskAsyncHandler() HttpTaskAsyncHandler()

從衍生類別中的建構函式呼叫,以將 HttpTaskAsyncHandler 類別初始化。Called from constructors in derived classes to initialize the HttpTaskAsyncHandler class.

屬性

IsReusable IsReusable IsReusable IsReusable

在衍生類別中覆寫時,取得一個值,此值指出工作處理常式類別執行個體是否可以重複用於另一個非同步工作。When overridden in a derived class, gets a value that indicates whether the task handler class instance can be reused for another asynchronous task.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ProcessRequest(HttpContext) ProcessRequest(HttpContext) ProcessRequest(HttpContext) ProcessRequest(HttpContext)

在衍生類別中覆寫時,提供處理同步工作的程式碼。When overridden in a derived class, provides code that handles a synchronous task.

ProcessRequestAsync(HttpContext) ProcessRequestAsync(HttpContext) ProcessRequestAsync(HttpContext) ProcessRequestAsync(HttpContext)

在衍生類別中覆寫時,提供處理非同步工作的程式碼。When overridden in a derived class, provides code that handles an asynchronous task.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

明確介面實作

IHttpAsyncHandler.BeginProcessRequest(HttpContext, AsyncCallback, Object) IHttpAsyncHandler.BeginProcessRequest(HttpContext, AsyncCallback, Object) IHttpAsyncHandler.BeginProcessRequest(HttpContext, AsyncCallback, Object) IHttpAsyncHandler.BeginProcessRequest(HttpContext, AsyncCallback, Object)

啟始非同步處理 HTTP 工作處理常式中的工作。Initiates asynchronous processing of a task in an HTTP task handler.

IHttpAsyncHandler.EndProcessRequest(IAsyncResult) IHttpAsyncHandler.EndProcessRequest(IAsyncResult) IHttpAsyncHandler.EndProcessRequest(IAsyncResult) IHttpAsyncHandler.EndProcessRequest(IAsyncResult)

結束非同步處理 HTTP 工作處理常式中的工作。Ends asynchronous processing of a task in an HTTP task handler.

適用於