语言

WebexAdapter.ContinueConversationAsync 方法

定义

重载

名称 说明
ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

基于对话引用继续现有对话的标准BotBuilder适配器方法。

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

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

ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

基于对话引用继续现有对话的标准BotBuilder适配器方法。

public System.Threading.Tasks.Task ContinueConversationAsync(Microsoft.Bot.Schema.ConversationReference reference, Microsoft.Bot.Builder.BotCallbackHandler logic, System.Threading.CancellationToken cancellationToken);
override this.ContinueConversationAsync : Microsoft.Bot.Schema.ConversationReference * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ContinueConversationAsync (reference As ConversationReference, logic As BotCallbackHandler, cancellationToken As CancellationToken) As Task

参数

reference
ConversationReference

ConversationReference A用于未来的消息。

logic
BotCallbackHandler

一个机器人逻辑函数,能够执行持续动作。

cancellationToken
CancellationToken

任务的取消令牌。

返回

表示异步作的 Task。

适用于

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

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

public override System.Threading.Tasks.Task ContinueConversationAsync(System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.Bot.Schema.ConversationReference reference, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
override this.ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Bot.Schema.ConversationReference * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function ContinueConversationAsync (claimsIdentity As ClaimsIdentity, reference As ConversationReference, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task

参数

claimsIdentity
ClaimsIdentity

ClaimsIdentity A,感谢对话。

reference
ConversationReference

要继续的对对话的引用。

callback
BotCallbackHandler

调用生成的机器人轮次的方法。

cancellationToken
CancellationToken

取消令牌。

返回

表示要执行的工作的任务。

注解

调用此方法以主动将消息发送到对话。 大多数_channels要求用户在机器人发送活动前,先与机器人初始化对话。

该方法为该回合注册以下服务。

  • IIdentity (关键字=“BotIdentity”),一个声称为该机器人claimsIdentity。

另请参阅

适用于