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
属性
实现

构造函数

SlackAdapter(IConfiguration, SlackAdapterOptions, ILogger)
已过时.

使用配置设置初始化 类的新实例 SlackAdapter

SlackAdapter(SlackClientWrapper, SlackAdapterOptions, ILogger)
已过时.

初始化 SlackAdapter 类的新实例。 创建 Slack 适配器。

字段

BotIdentityKey
已过时.

机器人标识密钥的字符串值。

(继承自 BotAdapter)
InvokeResponseKey
已过时.

将位于 TurnState 上的任何 InvokeResponseActivity 的键值。

(继承自 BotAdapter)
OAuthScopeKey
已过时.

OAuth 范围密钥的字符串值。

(继承自 BotAdapter)

属性

MiddlewareSet
已过时.

获取适配器管道中中间件的集合。

(继承自 BotAdapter)
OnTurnError
已过时.

获取或设置一个错误处理程序,该处理程序可以捕获中间件或应用程序中的异常。

(继承自 BotAdapter)

方法

ContinueConversationAsync(ClaimsIdentity, Activity, BotCallbackHandler, CancellationToken)
已过时.

向对话发送主动消息。

(继承自 BotAdapter)
ContinueConversationAsync(ClaimsIdentity, Activity, String, BotCallbackHandler, CancellationToken)
已过时.

向对话发送主动消息。

(继承自 BotAdapter)
ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)
已过时.

将主动消息从机器人发送到聊天。

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)
已过时.

创建轮次上下文并为传入的 TRUSTED 活动运行中间件管道。

(继承自 BotAdapter)
ProcessAsync(HttpRequest, HttpResponse, IBot, CancellationToken)
已过时.

接受传入的 Webhook 请求,并将其转换为可由机器人逻辑处理的 TurnContext。

RunPipelineAsync(ITurnContext, BotCallbackHandler, CancellationToken)
已过时.

启动当前机器人轮次的活动处理。

(继承自 BotAdapter)
SendActivitiesAsync(ITurnContext, Activity[], CancellationToken)
已过时.

标准 BotBuilder 适配器方法,用于将消息从机器人发送到消息传送 API。

UpdateActivityAsync(ITurnContext, Activity, CancellationToken)
已过时.

标准 BotBuilder 适配器方法,用于使用新内容更新以前的消息。

Use(IMiddleware)
已过时.

将中间件添加到适配器的管道。

(继承自 BotAdapter)

扩展方法

UseBotState(BotAdapter, BotState[])
已过时.

将中间件添加到适配器,以在轮次上下文中注册一个或多个 BotState 对象。 中间件在每个轮次开始时在轮次上下文中注册状态对象。

UseState(BotAdapter, UserState, ConversationState, Boolean)
已过时.

向适配器注册用户和会话状态对象。 这些对象将通过轮次上下文的 TurnState.Get<T>() 方法提供。

UseStorage(BotAdapter, IStorage)
已过时.

将中间件添加到适配器,以在轮次上下文中注册 IStorage 对象。 中间件在每个轮次开始时在轮次上下文中注册状态对象。

适用于