WebexAdapter 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.
BotAdapter 允許透過 Webex Teams API 處理 Webex Teams 應用程式的負載與回應。
[System.Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")]
public class WebexAdapter : Microsoft.Bot.Builder.BotAdapter, Microsoft.Bot.Builder.Integration.AspNet.Core.IBotFrameworkHttpAdapter
[<System.Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")>]
type WebexAdapter = class
inherit BotAdapter
interface IBotFrameworkHttpAdapter
Public Class WebexAdapter
Inherits BotAdapter
Implements IBotFrameworkHttpAdapter
- 繼承
- 屬性
- 實作
建構函式
| 名稱 | Description |
|---|---|
| WebexAdapter(IConfiguration, WebexAdapterOptions, ILogger) |
已淘汰.
使用設定初始化該類別的新實例 WebexAdapter 。 |
| WebexAdapter(WebexClientWrapper, WebexAdapterOptions, ILogger) |
已淘汰.
初始化 WebexAdapter 類別的新執行個體。 建立一個 Webex 轉接器。 |
欄位
| 名稱 | Description |
|---|---|
| BotIdentityKey |
已淘汰.
機器人身份鍵的字串值。 (繼承來源 BotAdapter) |
| InvokeResponseKey |
已淘汰.
任何 InvokeResponseActivity 在 TurnState 上的關鍵值。 (繼承來源 BotAdapter) |
| OAuthScopeKey |
已淘汰.
OAuth 範圍鍵的字串值。 (繼承來源 BotAdapter) |
屬性
| 名稱 | Description |
|---|---|
| MiddlewareSet |
已淘汰.
取得配接器管線中的中間件集合。 (繼承來源 BotAdapter) |
| OnTurnError |
已淘汰.
取得或設定錯誤處理程式,能捕捉中介軟體或應用程式中的異常。 (繼承來源 BotAdapter) |
方法
擴充方法
| 名稱 | Description |
|---|---|
| UseBotState(BotAdapter, BotState[]) |
已淘汰.
在轉接器中加入中介軟體,以便在回合上下文中註冊一個或多個 BotState 物件。 中介軟體會在每回合開始時,登錄回合上下文中的狀態物件。 |
| UseState(BotAdapter, UserState, ConversationState, Boolean) |
已淘汰.
|
| UseStorage(BotAdapter, IStorage) |
已淘汰.
在轉接器中加入中介軟體,以便在回合上下文中註冊 IStorage 物件。 中介軟體會在每回合開始時,登錄回合上下文中的狀態物件。 |