CloudAdapterBase.ContinueConversationAsync 方法

定义

重载

ContinueConversationAsync(ClaimsIdentity, Activity, BotCallbackHandler, CancellationToken)

向对话发送主动消息。

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

将主动消息从机器人发送到对话。

ContinueConversationAsync(String, Activity, BotCallbackHandler, CancellationToken)

向对话发送主动消息。

ContinueConversationAsync(String, ConversationReference, BotCallbackHandler, CancellationToken)

将主动消息从机器人发送到对话。

ContinueConversationAsync(ClaimsIdentity, Activity, String, BotCallbackHandler, CancellationToken)

向对话发送主动消息。

ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, BotCallbackHandler, CancellationToken)

将主动消息从机器人发送到对话。

ContinueConversationAsync(ClaimsIdentity, Activity, BotCallbackHandler, CancellationToken)

向对话发送主动消息。

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

参数

claimsIdentity
ClaimsIdentity

会话的 。ClaimsIdentity

continuationActivity
Activity

一个 Activity ,其中包含用于继续聊天的相应 ConversationReference 对象。

callback
BotCallbackHandler

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

cancellationToken
CancellationToken

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

返回

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

适用于

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

取消标记。

返回

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

适用于

ContinueConversationAsync(String, Activity, BotCallbackHandler, CancellationToken)

向对话发送主动消息。

public override System.Threading.Tasks.Task ContinueConversationAsync (string botAppId, Microsoft.Bot.Schema.Activity continuationActivity, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
override this.ContinueConversationAsync : string * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function ContinueConversationAsync (botAppId As String, continuationActivity As Activity, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task

参数

botAppId
String
continuationActivity
Activity

一个 Activity ,其中包含用于继续聊天的相应 ConversationReference 对象。

callback
BotCallbackHandler

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

cancellationToken
CancellationToken

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

返回

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

适用于

ContinueConversationAsync(String, ConversationReference, BotCallbackHandler, CancellationToken)

将主动消息从机器人发送到对话。

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

参数

botAppId
String

机器人的应用程序 ID。 这是门户注册返回的 appId,通常位于 appSettings.json 中的“MicrosoftAppId”参数中。

reference
ConversationReference

对要继续的对话的引用。

callback
BotCallbackHandler

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

cancellationToken
CancellationToken

取消标记。

返回

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

适用于

ContinueConversationAsync(ClaimsIdentity, Activity, String, BotCallbackHandler, CancellationToken)

向对话发送主动消息。

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

参数

claimsIdentity
ClaimsIdentity

会话的 。ClaimsIdentity

continuationActivity
Activity

一个 Activity ,其中包含用于继续聊天的相应 ConversationReference 对象。

audience
String

一个值,表示主动消息的收件人。

callback
BotCallbackHandler

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

cancellationToken
CancellationToken

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

返回

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

适用于

ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, BotCallbackHandler, CancellationToken)

将主动消息从机器人发送到对话。

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

参数

claimsIdentity
ClaimsIdentity

会话的 。ClaimsIdentity

reference
ConversationReference

对要继续的对话的引用。

audience
String

连接器的目标受众。

callback
BotCallbackHandler

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

cancellationToken
CancellationToken

取消标记。

返回

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

适用于