TwilioAdapter.ContinueConversationAsync 方法

定义

重载

ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

向对话发送主动消息。

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

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

ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

向对话发送主动消息。

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

对要继续的对话的引用。

logic
BotCallbackHandler

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

cancellationToken
CancellationToken

可由其他对象或线程用以接收取消通知的取消标记。

返回

表示排队等待执行的工作的任务。

例外

referencelogicnull

注解

调用此方法可主动向会话发送消息。 大多数通道要求用户先启动与机器人的对话,然后机器人才能向用户发送活动。

另请参阅

适用于

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会话的 。

reference
ConversationReference

对要继续的对话的引用。

callback
BotCallbackHandler

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

cancellationToken
CancellationToken

取消标记。

返回

表示排队等待执行的工作的任务。

注解

调用此方法可主动向会话发送消息。 大多数_channels要求用户先初始化与机器人的会话,然后机器人才能向用户发送活动。

此方法为轮次注册以下服务。

  • IIdentity (密钥 = “BotIdentity”) ,则为机器人的 claimsIdentity。

另请参阅

适用于