共用方式為


WebexAdapter.ProcessAsync 方法

定義

接受傳入的 Webhook HttpRequest ,並將它 TurnContext 轉換成 可由 Bot 邏輯處理的 。

public System.Threading.Tasks.Task ProcessAsync (Microsoft.AspNetCore.Http.HttpRequest request, Microsoft.AspNetCore.Http.HttpResponse response, Microsoft.Bot.Builder.IBot bot, System.Threading.CancellationToken cancellationToken);
abstract member ProcessAsync : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Http.HttpResponse * Microsoft.Bot.Builder.IBot * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ProcessAsync : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Http.HttpResponse * Microsoft.Bot.Builder.IBot * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ProcessAsync (request As HttpRequest, response As HttpResponse, bot As IBot, cancellationToken As CancellationToken) As Task

參數

request
HttpRequest

傳入 HttpRequest 的 。

response
HttpResponse

當這個方法完成時,要傳送的 HttpResponse

bot
IBot

將處理傳入活動的 Bot。

cancellationToken
CancellationToken

工作的解除標記。

傳回

代表非同步作業的 Task

實作

適用於