IBotFrameworkHttpAdapter.ProcessAsync Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Metode ini dapat dipanggil dari dalam metode POST pada implementasi Pengontrol apa pun.
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
Public Function ProcessAsync (httpRequest As HttpRequest, httpResponse As HttpResponse, bot As IBot, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameter
- httpRequest
- HttpRequest
Objek permintaan HTTP, biasanya dalam handler POST oleh Pengontrol.
- httpResponse
- HttpResponse
Objek respons HTTP.
- bot
- IBot
Implementasi bot.
- cancellationToken
- CancellationToken
Token pembatalan yang dapat digunakan oleh objek atau utas lain untuk menerima pemberitahuan pembatalan.
Mengembalikan
Tugas yang mewakili pekerjaan yang diantrekan untuk dijalankan.