ConnectorClient 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
Bot 連接器 REST API 可讓您的 Bot 將訊息傳送和接收至 Bot Framework 開發人員入口網站中設定的通道,。 連接器服務會透過 HTTPS 使用業界標準的 REST 和 JSON。
此 REST API 的用戶端連結庫可供使用。 如需清單,請參閱下方。
許多 Bot 都會使用 Bot 連接器 REST API 和相關聯的 Bot 狀態 REST API。 Bot 狀態 REST API 可讓 Bot 儲存和擷取與使用者和交談相關聯的狀態。
Bot 連接器和 Bot 狀態 REST API 的驗證都是使用 JWT 持有人令牌完成的,並詳述於 連接器驗證 檔中。
Bot Connector REST API 的用戶端函式庫
- C 語言機器人建構器#
- 適用於 Node.js的 Bot 建立器
- 從 Connector API 的 Swagger 檔案自行產生
© 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
- 實作
建構函式
屬性
| 名稱 | Description |
|---|---|
| Attachments |
拿到協議。 |
| BaseUri |
取得或設定服務的基礎 URI。 |
| Conversations |
他會收到對話。 |
| Credentials |
會取得訂閱憑證,唯一識別客戶訂閱。 |
| DeserializationSettings |
取得 JSON 反序列化設定。 |
| SerializationSettings |
取得 JSON 序列化設定。 |
方法
| 名稱 | Description |
|---|---|
| AddDefaultRequestHeaders(HttpClient) |
配置 HTTP 用戶端以包含機器人框架的預設標頭。 |
| GetArchitecture() |
取得Azure Bot Service的平台架構。 |
| GetASPNetVersion() |
.NET Framework 版本的名稱也Azure Bot Service...... |
| GetClientVersion<T>(T) |
Azure Bot Service會買組裝版。 |
| GetOsVersion() |
獲得Azure Bot Service作業系統的描述。 |