WebexAdapter.ProcessAsync 方法

定义

接受传入的 Webhook HttpRequest 并将其 TurnContext 转换为可由机器人逻辑处理的 。

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

将处理传入活动的机器人。

cancellationToken
CancellationToken

任务的取消标记。

返回

表示异步操作的 Task

实现

适用于