共用方式為


SlackAdapter.ProcessAsync 方法

定義

接受傳入的 Webhook 要求,並將其轉換成 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

連入的 HTTP 要求。

response
HttpResponse

此方法完成時,要傳送的 HTTP 回應。

bot
IBot

將處理傳入活動的 Bot。

cancellationToken
CancellationToken

工作的解除標記。

傳回

代表非同步作業的 Task

實作

適用於