BotFrameworkHttpClient 类

定义

注意

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

使用 BotFramework HTTP 协议安全地将活动发布到机器人的类。

[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 协议将活动安全地发布到机器人。 有 2 种使用模式:* 将活动转发到 Skill (Bot => Bot 作为技能) 这是通过 PostActivityAsync 从BotId (完成的, toBotId、endpoint、serviceUrl、活动) ; * 将活动发布到自己 (外部服务 => 机器人) ,这是通过 PostActivityAsync (botId、终结点、活动) 后者由需要使用机器人自己的凭据将活动发布到机器人的外部服务(如 webjobs)使用。

构造函数

BotFrameworkHttpClient(HttpClient, ICredentialProvider, IChannelProvider, ILogger)
已过时.

初始化 BotFrameworkHttpClient 类的新实例。

属性

AppCredentialMapCache
已过时.

获取 appCredentials 的缓存,以在未请求令牌 (令牌时加快令牌获取速度,除非) 过期。 AppCredentials 使用 appId + 范围进行缓存 (仅当应用凭据用于调用技能) 时才使用最后一个参数。

ChannelProvider
已过时.

获取此适配器的通道提供程序。

CredentialProvider
已过时.

获取此适配器的凭据提供程序。

HttpClient
已过时.

获取此适配器的 HttpClient。

Logger
已过时.

获取此适配器的记录器。

方法

BuildCredentialsAsync(String, String)
已过时.

用于生成 AppCredentials 要用于获取此 HttpClient 令牌的对象的逻辑。

Dispose()
已过时.

使用 BotFramework HTTP 协议安全地将活动发布到机器人的类。

(继承自 BotFrameworkClient)
Dispose(Boolean)
已过时.

释放模式的受保护实现。

(继承自 BotFrameworkClient)
PostActivityAsync(String, String, Uri, Uri, String, Activity, CancellationToken)
已过时.

将活动转发到技能 (机器人) 。

PostActivityAsync(String, Uri, Activity, CancellationToken)
已过时.

使用机器人的凭据将活动发布到机器人。

PostActivityAsync<T>(String, String, Uri, Uri, String, Activity, CancellationToken)
已过时.

将活动转发到技能 (机器人) 。

PostActivityAsync<T>(String, Uri, Activity, CancellationToken)
已过时.

使用机器人的凭据将活动发布到机器人。

适用于