BotFrameworkAdapter.ContinueConversationAsync 方法

定义

重载

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

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

ContinueConversationAsync(String, ConversationReference, BotCallbackHandler, CancellationToken)

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

ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, BotCallbackHandler, 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

取消标记。

返回

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

注解

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

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

  • IIdentity (密钥 = “BotIdentity”) ,则为机器人的 claimsIdentity。
  • IConnectorClient,用于使用此轮次的通道连接器客户端。

另请参阅

适用于

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

取消标记。

返回

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

实现

例外

botAppIdreferencecallbacknull

注解

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

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

  • IIdentity (密钥 = “BotIdentity”) ,则为机器人的 claimsIdentity。
  • IConnectorClient,用于使用此轮次的通道连接器客户端。

此重载不同于 Node 实现,要求传入 BotId。 .Net 代码允许将多个机器人托管在 Node 不支持的单个适配器中。

另请参阅

适用于

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

取消标记。

返回

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

适用于