語言

SlackAdapter 類別

定義

警告

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.

[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 SlackAdapter : 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 SlackAdapter = class
    inherit BotAdapter
    interface IBotFrameworkHttpAdapter
Public Class SlackAdapter
Inherits BotAdapter
Implements IBotFrameworkHttpAdapter
繼承
SlackAdapter
屬性
實作

建構函式

名稱 Description
SlackAdapter(IConfiguration, SlackAdapterOptions, ILogger)
已淘汰.

使用設定初始化該類別的新實例 SlackAdapter 。

SlackAdapter(SlackClientWrapper, SlackAdapterOptions, ILogger)
已淘汰.

初始化 SlackAdapter 類別的新執行個體。 建立一個 Slack 轉接器。

欄位

名稱 Description
BotIdentityKey
已淘汰.

機器人身份鍵的字串值。

(繼承來源 BotAdapter)
InvokeResponseKey
已淘汰.

任何 InvokeResponseActivity 在 TurnState 上的關鍵值。

(繼承來源 BotAdapter)
OAuthScopeKey
已淘汰.

OAuth 範圍鍵的字串值。

(繼承來源 BotAdapter)

屬性

名稱 Description
MiddlewareSet
已淘汰.

取得配接器管線中的中間件集合。

(繼承來源 BotAdapter)
OnTurnError
已淘汰.

取得或設定錯誤處理程式,能捕捉中介軟體或應用程式中的異常。

(繼承來源 BotAdapter)

方法

名稱 Description
ContinueConversationAsync(ClaimsIdentity, Activity, BotCallbackHandler, CancellationToken)
已淘汰.

將主動式訊息傳送至交談。

(繼承來源 BotAdapter)
ContinueConversationAsync(ClaimsIdentity, Activity, String, BotCallbackHandler, CancellationToken)
已淘汰.

將主動式訊息傳送至交談。

(繼承來源 BotAdapter)
ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)
已淘汰.

將主動式訊息從 Bot 傳送至交談。

ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, BotCallbackHandler, CancellationToken)
已淘汰.

將主動式訊息傳送至交談。

(繼承來源 BotAdapter)
ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)
已淘汰.

標準 BotBuilder 介面卡方法,用於基於對話參考繼續現有對話。

ContinueConversationAsync(String, Activity, BotCallbackHandler, CancellationToken)
已淘汰.

將主動式訊息傳送至交談。

(繼承來源 BotAdapter)
ContinueConversationAsync(String, ConversationReference, BotCallbackHandler, CancellationToken)
已淘汰.

將主動式訊息傳送至交談。

(繼承來源 BotAdapter)
CreateConversationAsync(String, String, String, String, ConversationParameters, BotCallbackHandler, CancellationToken)
已淘汰.

在指定的通道上建立交談。

(繼承來源 BotAdapter)
DeleteActivityAsync(ITurnContext, ConversationReference, CancellationToken)
已淘汰.

標準的 BotBuilder 轉接器方法用來刪除先前的訊息。

ProcessActivityAsync(ClaimsIdentity, Activity, BotCallbackHandler, CancellationToken)
已淘汰.

建立一個 Turn上下文,並執行中介軟體管線以處理一個被信任的活動。

(繼承來源 BotAdapter)
ProcessAsync(HttpRequest, HttpResponse, IBot, CancellationToken)
已淘汰.

接受傳入的 Webhook 要求,並將它轉換成 TurnContext,可由 Bot 的邏輯處理。

RunPipelineAsync(ITurnContext, BotCallbackHandler, CancellationToken)
已淘汰.

啟動目前 Bot 回合的活動處理。

(繼承來源 BotAdapter)
SendActivitiesAsync(ITurnContext, Activity[], CancellationToken)
已淘汰.

標準的 BotBuilder 轉接器方法,用來從機器人發送訊息到 Messenger API。

UpdateActivityAsync(ITurnContext, Activity, CancellationToken)
已淘汰.

標準的 BotBuilder 介面卡方法,用來更新先前訊息並加入新內容。

Use(IMiddleware)
已淘汰.

將中間件新增至配接器的管線。

(繼承來源 BotAdapter)

擴充方法

名稱 Description
UseBotState(BotAdapter, BotState[])
已淘汰.

在轉接器中加入中介軟體,以便在回合上下文中註冊一個或多個 BotState 物件。 中介軟體會在每回合開始時,登錄回合上下文中的狀態物件。

UseState(BotAdapter, UserState, ConversationState, Boolean)
已淘汰.

向介面卡註冊使用者及會話狀態物件。 這些物件將透過回合上下文的 TurnState.Get<T>() 方法 提供。

UseStorage(BotAdapter, IStorage)
已淘汰.

在轉接器中加入中介軟體,以便在回合上下文中註冊 IStorage 物件。 中介軟體會在每回合開始時,登錄回合上下文中的狀態物件。

適用於