ConnectorClient 类

定义

机器人连接器 REST API 允许机器人向 Bot Framework 开发人员门户中配置的通道发送和接收消息。 连接器服务通过 HTTPS 使用行业标准 REST 和 JSON。

此 REST API 的客户端库可用。 有关列表,请参阅下文。

许多机器人将使用机器人连接器 REST API 和关联的 机器人状态 REST API。 机器人状态 REST API 允许机器人存储和检索与用户和对话关联的状态。

Bot Connector 和 Bot State REST API 的身份验证都是使用 JWT 持有者令牌完成的, 连接器身份验证 文档中对此进行了详细介绍。

机器人连接器 REST API 的客户端库

© 2016 Microsoft。

public class ConnectorClient : Microsoft.Rest.ServiceClient<Microsoft.Bot.Connector.ConnectorClient>, IDisposable, Microsoft.Bot.Connector.IConnectorClient
type ConnectorClient = class
    inherit ServiceClient<ConnectorClient>
    interface IConnectorClient
    interface IDisposable
Public Class ConnectorClient
Inherits ServiceClient(Of ConnectorClient)
Implements IConnectorClient, IDisposable
继承
Microsoft.Rest.ServiceClient<ConnectorClient>
ConnectorClient
实现

构造函数

ConnectorClient(DelegatingHandler[])

初始化 ConnectorClient 类的新实例。

ConnectorClient(HttpClient, Boolean)

初始化 ConnectorClient 类的新实例。

ConnectorClient(HttpClientHandler, DelegatingHandler[])

初始化 ConnectorClient 类的新实例。

ConnectorClient(ServiceClientCredentials, DelegatingHandler[])

初始化 ConnectorClient 类的新实例。

ConnectorClient(ServiceClientCredentials, HttpClient, Boolean)

初始化 ConnectorClient 类的新实例。

ConnectorClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

初始化 ConnectorClient 类的新实例。

ConnectorClient(Uri, DelegatingHandler[])

初始化 ConnectorClient 类的新实例。

ConnectorClient(Uri, HttpClientHandler, DelegatingHandler[])

初始化 ConnectorClient 类的新实例。

ConnectorClient(Uri, MicrosoftAppCredentials, Boolean, DelegatingHandler[])

机器人连接器 REST API 允许机器人向 Bot Framework 开发人员门户中配置的通道发送和接收消息。 连接器服务通过 HTTPS 使用行业标准 REST 和 JSON。

此 REST API 的客户端库可用。 有关列表,请参阅下文。

许多机器人将使用机器人连接器 REST API 和关联的 机器人状态 REST API。 机器人状态 REST API 允许机器人存储和检索与用户和对话关联的状态。

Bot Connector 和 Bot State REST API 的身份验证都是使用 JWT 持有者令牌完成的, 连接器身份验证 文档中对此进行了详细介绍。

机器人连接器 REST API 的客户端库

© 2016 Microsoft。

ConnectorClient(Uri, MicrosoftAppCredentials, Boolean, DelegatingHandler[])

初始化 ConnectorClient 类的新实例。

ConnectorClient(Uri, MicrosoftAppCredentials, HttpClient, Boolean, DelegatingHandler[])

初始化 ConnectorClient 类的新实例。

ConnectorClient(Uri, MicrosoftAppCredentials, HttpClientHandler, Boolean, DelegatingHandler[])

机器人连接器 REST API 允许机器人向 Bot Framework 开发人员门户中配置的通道发送和接收消息。 连接器服务通过 HTTPS 使用行业标准 REST 和 JSON。

此 REST API 的客户端库可用。 有关列表,请参阅下文。

许多机器人将使用机器人连接器 REST API 和关联的 机器人状态 REST API。 机器人状态 REST API 允许机器人存储和检索与用户和对话关联的状态。

Bot Connector 和 Bot State REST API 的身份验证都是使用 JWT 持有者令牌完成的, 连接器身份验证 文档中对此进行了详细介绍。

机器人连接器 REST API 的客户端库

© 2016 Microsoft。

ConnectorClient(Uri, MicrosoftAppCredentials, HttpClientHandler, Boolean, HttpClient, DelegatingHandler[])

初始化 ConnectorClient 类的新实例。

ConnectorClient(Uri, ServiceClientCredentials, DelegatingHandler[])

初始化 ConnectorClient 类的新实例。

ConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean)

初始化 ConnectorClient 类的新实例。

ConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean, DelegatingHandler[])

初始化 ConnectorClient 类的新实例。

ConnectorClient(Uri, ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

初始化 ConnectorClient 类的新实例。

ConnectorClient(Uri, String, String, DelegatingHandler[])

初始化 ConnectorClient 类的新实例。

属性

Attachments

获取 IAttachments。

BaseUri

获取或设置服务的基 URI。

Conversations

获取 IConversations。

Credentials

获取唯一标识客户端订阅的订阅凭据。

DeserializationSettings

获取 JSON 反序列化设置。

SerializationSettings

获取 JSON 序列化设置。

方法

AddDefaultRequestHeaders(HttpClient)

将 HTTP 客户端配置为包含 Bot Framework 的默认标头。

GetArchitecture()

获取 Azure 机器人服务的平台体系结构。

GetASPNetVersion()

获取 Azure 机器人服务 的.NET Framework版本的名称。

GetClientVersion<T>(T)

获取 Azure 机器人服务的程序集版本。

GetOsVersion()

获取 Azure 机器人服务操作系统的说明。

适用于