BotFrameworkHttpClient 類別

定義

警告

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

使用 BotFramework HTTP 通訊協定安全地將活動張貼至 Bot 的類別。

[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
繼承
BotFrameworkHttpClient
衍生
屬性

備註

這個類別可用來使用 Bot Framework HTTP 通訊協定安全地將活動張貼至 Bot。 有 2 種使用模式:* 將活動轉送至 Skill (Bot = > Bot 作為 Skill) ,其透過 PostActivityAsync (fromBotId 完成, toBotId, endpoint, serviceUrl, activity) ; * 將活動張貼到自己 (外部服務 = > Bot) 透過 PostActivityAsync (botId, endpoint, activity) 後者是由外部服務使用,例如需要使用 Bot 擁有認證將活動張貼至 Bot 的 Webjob。

建構函式

BotFrameworkHttpClient(HttpClient, ICredentialProvider, IChannelProvider, ILogger)
已淘汰.

初始化 BotFrameworkHttpClient 類別的新執行個體。

屬性

AppCredentialMapCache
已淘汰.

取得 appCredentials 的快取,以加速權杖擷取, (除非權杖已過期) 否則不會要求權杖。 只有在應用程式認證用來呼叫技能) 時,才會使用 appCredentials 使用 appId + scope (這個最後一個參數。

ChannelProvider
已淘汰.

取得這個配接器的通道提供者。

CredentialProvider
已淘汰.

取得這個配接器的認證提供者。

HttpClient
已淘汰.

取得這個配接器的 HttpClient。

Logger
已淘汰.

取得這個配接器的記錄器。

方法

BuildCredentialsAsync(String, String)
已淘汰.

用來建置 AppCredentials 物件以取得此 HttpClient 權杖的邏輯。

Dispose()
已淘汰.

使用 BotFramework HTTP 通訊協定安全地將活動張貼至 Bot 的類別。

(繼承來源 BotFrameworkClient)
Dispose(Boolean)
已淘汰.

處置模式的受保護實作。

(繼承來源 BotFrameworkClient)
PostActivityAsync(String, String, Uri, Uri, String, Activity, CancellationToken)
已淘汰.

將活動轉送至技能 (Bot) 。

PostActivityAsync(String, Uri, Activity, CancellationToken)
已淘汰.

使用 Bot 的認證將活動張貼至 Bot。

PostActivityAsync<T>(String, String, Uri, Uri, String, Activity, CancellationToken)
已淘汰.

將活動轉送至技能 (Bot) 。

PostActivityAsync<T>(String, Uri, Activity, CancellationToken)
已淘汰.

使用 Bot 的認證將活動張貼至 Bot。

適用於