语言

ConnectorClient 类

定义

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

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

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

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

Bot Connector 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[])

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

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

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

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

Bot Connector REST API 的客户端库

© 2016年Microsoft。

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

初始化 ConnectorClient 类的新实例。

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

初始化 ConnectorClient 类的新实例。

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

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

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

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

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

Bot Connector REST API 的客户端库

© 2016年Microsoft。

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

初始化 ConnectorClient 类的新实例。

ConnectorClient(Uri, ServiceClientCredentials, DelegatingHandler[])

初始化 ConnectorClient 类的新实例。

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

初始化 ConnectorClient 类的新实例。

ConnectorClient(Uri, ServiceClientCredentials, HttpClient, Boolean)

初始化 ConnectorClient 类的新实例。

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

初始化 ConnectorClient 类的新实例。

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

初始化 ConnectorClient 类的新实例。

属性

名称 说明
Attachments

拿到协议。

BaseUri

获取或设置服务的基础URI。

Conversations

能理解对话。

Credentials

获取订阅凭证,唯一标识客户端订阅。

DeserializationSettings

它能获得JSON反序列化设置。

SerializationSettings

它能获得JSON序列化设置。

方法

名称 说明
AddDefaultRequestHeaders(HttpClient)

配置一个HTTP客户端,使其包含机器人框架的默认头部。

GetArchitecture()

获得Azure 机器人服务的平台架构。

GetASPNetVersion()

得到了.NET框架版本Azure 机器人服务名称。

GetClientVersion<T>(T)

Azure 机器人服务会买汇编版。

GetOsVersion()

获得Azure 机器人服务操作系统的描述。

适用于