IBotFrameworkHttpAdapter.ProcessAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
此方法可從任何控制器實作的 POST 方法中呼叫。
public System.Threading.Tasks.Task ProcessAsync(System.Net.Http.HttpRequestMessage httpRequest, System.Net.Http.HttpResponseMessage httpResponse, Microsoft.Bot.Builder.IBot bot, System.Threading.CancellationToken cancellationToken = default);
abstract member ProcessAsync : System.Net.Http.HttpRequestMessage * System.Net.Http.HttpResponseMessage * Microsoft.Bot.Builder.IBot * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ProcessAsync (httpRequest As HttpRequestMessage, httpResponse As HttpResponseMessage, bot As IBot, Optional cancellationToken As CancellationToken = Nothing) As Task
參數
- httpRequest
- HttpRequestMessage
HTTP 請求物件,通常由控制器在 POST 處理器中。
- httpResponse
- HttpResponseMessage
HTTP 回應物件。
- bot
- IBot
機器人實作。
- cancellationToken
- CancellationToken
一種可被其他物件或執行緒用來接收取消通知的取消標記。
傳回
工作,表示要執行的工作佇列。