Lingua

WebexAdapter.ProcessAsync Metodo

Definizione

Accetta un webhook HttpRequest in arrivo e convertilo in un TurnContext che può essere elaborato dalla logica del 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

Parametri

request
HttpRequest

L'arrivo HttpRequestdi .

response
HttpResponse

Quando questo metodo si completa, il HttpResponse to spawn.

bot
IBot

Il bot che gestirà l'attività in arrivo.

cancellationToken
CancellationToken

Un gettone di cancellazione per il compito.

Valori restituiti

Oggetto Task che rappresenta l'operazione asincrona.

Implementazioni

Si applica a