FacebookAdapter.ProcessAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Accetta una richiesta webhook in arrivo, crea un contesto turn ed esegue la pipeline middleware per un'attività TRUSTED in arrivo.
public System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Http.HttpRequest httpRequest, Microsoft.AspNetCore.Http.HttpResponse httpResponse, Microsoft.Bot.Builder.IBot bot, System.Threading.CancellationToken cancellationToken = default);
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 (httpRequest As HttpRequest, httpResponse As HttpResponse, bot As IBot, Optional cancellationToken As CancellationToken = Nothing) As Task
Parametri
- httpRequest
- HttpRequest
Rappresenta il lato in ingresso di una richiesta HTTP.
- httpResponse
- HttpResponse
Rappresenta il lato in uscita di una richiesta HTTP.
- bot
- IBot
Codice da eseguire alla fine della pipeline middleware dell'adapter.
- cancellationToken
- CancellationToken
Token di annullamento che può essere utilizzato da altri oggetti o thread per ricevere un avviso di annullamento.
Valori restituiti
Attività che rappresenta il lavoro in coda da eseguire.
Implementazioni
Eccezioni
Il webhook riceve un messaggio con firma non valida.