Idioma

FacebookAdapter.ContinueConversationAsync Método

Definição

Sobrecargas

Nome Description
ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

Envia uma mensagem proativa para uma conversa usando uma referência de conversa.

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

Envia uma mensagem proativa do bot para uma conversa.

ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

Envia uma mensagem proativa para uma conversa usando uma referência de conversa.

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

Parâmetros

reference
ConversationReference

Uma referência à conversa a continuar.

logic
BotCallbackHandler

O método a ser chamado para a curva de bot resultante.

cancellationToken
CancellationToken

Um token de cancelamento que pode ser usado por outros objetos ou threads para receber aviso de cancelamento.

Retornos

Uma tarefa que representa o trabalho enfileirado a ser executado.

Exceções

logic ou reference é nulo.

Comentários

Chame esse método para enviar proativamente uma mensagem para uma conversa.

Aplica-se a

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

Envia uma mensagem proativa do bot para uma conversa.

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

Parâmetros

claimsIdentity
ClaimsIdentity

A ClaimsIdentity pela conversa.

reference
ConversationReference

Uma referência à conversa a continuar.

callback
BotCallbackHandler

O método a ser chamado para a curva de bot resultante.

cancellationToken
CancellationToken

Token de cancelamento.

Retornos

Uma tarefa que representa o trabalho enfileirado a ser executado.

Comentários

Chame esse método para enviar proativamente uma mensagem para uma conversa.

Esse método registra os seguintes serviços para a curva.

  • IIdentity (chave = "BotIdentity"), um reivindica identidade para o bot.

Confira também

Aplica-se a