FacebookAdapter.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

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

返回

一个任务,表示排队要执行的工作。

例外

logicreference 为 null。

注解

调用此方法可主动向对话发送消息。

适用于

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

取消标记。

返回

一个任务,表示排队要执行的工作。

注解

调用此方法可主动向对话发送消息。

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

  • IIdentity (密钥 = “BotIdentity”) ,机器人的声明声明 Identity。

另请参阅

适用于