BotFrameworkHttpAdapter.ProcessAsync 方法

定義

您可以從任何 Controller 實作上的 POST 方法內部呼叫此方法。

C#
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);

參數

httpRequest
HttpRequestMessage

HTTP 要求物件,通常是控制器在 POST 處理常式中。

httpResponse
HttpResponseMessage

HTTP 回應物件。

bot
IBot

Bot 實作。

cancellationToken
CancellationToken

取消語彙基元,可由其他物件或執行緒用來接收取消通知。

傳回

表示要執行之工作佇列的工作。

實作

適用於

產品 版本
Microsoft.Bot.Builder 4.0