语言

WebexAdapter 类

定义

注意

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

构造函数

名称 说明
WebexAdapter(IConfiguration, WebexAdapterOptions, ILogger)
已过时.

使用配置设置初始化该类的新实例 WebexAdapter 。

WebexAdapter(WebexClientWrapper, WebexAdapterOptions, ILogger)
已过时.

初始化 WebexAdapter 类的新实例。 创建一个 Webex 适配器。

字段

名称 说明
BotIdentityKey
已过时.

机器人身份密钥的字符串值。

(继承自 BotAdapter)
InvokeResponseKey
已过时.

任何 InvokeResponseActivity 在 TurnState 上的关键值。

(继承自 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)
已过时.

创建 Turn 上下文,并运行一个中间件流水线处理一个受信任的活动。

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

接受一个进入的 webhook HttpRequest ,并将其转换为 a 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 对象。 中间件在每回合开始时对回合上下文的状态对象进行注册。

适用于