BotFrameworkHttpClient Kelas

Definisi

Perhatian

Use BotFrameworkAuthentication.CreateBotFrameworkClient() to obtain a client and perform the operations that were accomplished through BotFrameworkHttpClient.

Kelas untuk memposting aktivitas dengan aman ke bot menggunakan protokol HTTP BotFramework.

[System.Obsolete("Use `BotFrameworkAuthentication.CreateBotFrameworkClient()` to obtain a client and perform the operations that were accomplished through `BotFrameworkHttpClient`.", false)]
public class BotFrameworkHttpClient : Microsoft.Bot.Builder.Skills.BotFrameworkClient
[<System.Obsolete("Use `BotFrameworkAuthentication.CreateBotFrameworkClient()` to obtain a client and perform the operations that were accomplished through `BotFrameworkHttpClient`.", false)>]
type BotFrameworkHttpClient = class
    inherit BotFrameworkClient
Public Class BotFrameworkHttpClient
Inherits BotFrameworkClient
Warisan
BotFrameworkHttpClient
Turunan
Atribut

Keterangan

Kelas ini dapat digunakan untuk memposting aktivitas dengan aman ke bot menggunakan protokol HTTP Bot Framework. Ada 2 pola penggunaan: * Aktivitas penerusan ke Keterampilan (Bot => Bot sebagai Keterampilan) yang dilakukan melalui PostActivityAsync(fromBotId, toBotId, titik akhir, serviceUrl, aktivitas); * Memposting aktivitas ke diri Anda sendiri (Layanan eksternal => Bot) yang dilakukan melalui PostActivityAsync(botId, titik akhir, aktivitas) Yang terakhir digunakan oleh layanan eksternal seperti webjobs yang perlu memposting aktivitas ke bot menggunakan kredensial bot sendiri.

Konstruktor

BotFrameworkHttpClient(HttpClient, ICredentialProvider, IChannelProvider, ILogger)
Kedaluwarsa.

Menginisialisasi instans baru kelas BotFrameworkHttpClient.

Properti

AppCredentialMapCache
Kedaluwarsa.

Mendapatkan Cache untuk appCredentials untuk mempercepat akuisisi token (token tidak diminta kecuali kedaluwarsa). AppCredentials di-cache menggunakan appId + scope (parameter terakhir ini hanya digunakan jika kredensial aplikasi digunakan untuk memanggil keterampilan).

ChannelProvider
Kedaluwarsa.

Mendapatkan penyedia saluran untuk adaptor ini.

CredentialProvider
Kedaluwarsa.

Mendapatkan penyedia kredensial untuk adaptor ini.

HttpClient
Kedaluwarsa.

Mendapatkan HttpClient untuk adaptor ini.

Logger
Kedaluwarsa.

Mendapatkan pencatat untuk adaptor ini.

Metode

BuildCredentialsAsync(String, String)
Kedaluwarsa.

Logika untuk membangun objek yang AppCredentials akan digunakan untuk memperoleh token untuk HttpClient ini.

Dispose()
Kedaluwarsa.

Kelas untuk memposting aktivitas dengan aman ke bot menggunakan protokol HTTP BotFramework.

(Diperoleh dari BotFrameworkClient)
Dispose(Boolean)
Kedaluwarsa.

Implementasi pola pembuangan yang dilindungi.

(Diperoleh dari BotFrameworkClient)
PostActivityAsync(String, String, Uri, Uri, String, Activity, CancellationToken)
Kedaluwarsa.

Meneruskan aktivitas ke keterampilan (bot).

PostActivityAsync(String, Uri, Activity, CancellationToken)
Kedaluwarsa.

Posting Aktivitas ke bot menggunakan kredensial bot.

PostActivityAsync<T>(String, String, Uri, Uri, String, Activity, CancellationToken)
Kedaluwarsa.

Meneruskan aktivitas ke keterampilan (bot).

PostActivityAsync<T>(String, Uri, Activity, CancellationToken)
Kedaluwarsa.

Posting Aktivitas ke bot menggunakan kredensial bot.

Berlaku untuk