SlackAdapter.ProcessAsync Metodo

Definizione

Accettare una richiesta webhook in ingresso e convertirla in un oggetto 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

Richiesta HTTP in ingresso.

response
HttpResponse

Al termine di questo metodo, la risposta HTTP da inviare.

bot
IBot

Bot che gestirà l'attività in ingresso.

cancellationToken
CancellationToken

Token di annullamento per l'attività.

Restituisce

Task che rappresenta l'operazione asincrona.

Implementazioni

Si applica a