BotFrameworkAdapter.ContinueConversationAsync Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Sobrecargas
| Name | Descrição |
|---|---|
| ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken) |
Envia uma mensagem proativa do bot para uma conversa. |
| ContinueConversationAsync(String, ConversationReference, BotCallbackHandler, CancellationToken) |
Envia uma mensagem proativa do bot para uma conversa. |
| ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, BotCallbackHandler, CancellationToken) |
Envia uma mensagem proativa do bot para uma conversa. |
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 para continuar.
- callback
- BotCallbackHandler
O método para chamar o turno de bot resultante.
- cancellationToken
- CancellationToken
Token de cancelamento.
Devoluções
Uma tarefa que representa o trabalho enfileirado para ser executado.
Observações
Chame esse método para enviar proativamente uma mensagem para uma conversa. A maioria das _channels exige que o utilizador inicie uma conversa com um bot antes de este poder enviar atividades ao utilizador.
Este método regista os seguintes serviços para o turno.
- IIdentity (chave = "BotIdentity"), um reivindica Identidade para o bot.
- IConnectorClient, o cliente conector de canal para usar esta curva.
Ver também
- RunPipelineAsync(ITurnContext, BotCallbackHandler, CancellationToken)
- ProcessActivityAsync(String, Activity, BotCallbackHandler, CancellationToken)
Aplica-se a
ContinueConversationAsync(String, ConversationReference, BotCallbackHandler, CancellationToken)
Envia uma mensagem proativa do bot para uma conversa.
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
Parâmetros
- botAppId
- String
O ID do aplicativo do bot. Este é o appId devolvido pelo registo do Portal, e geralmente encontra-se no parâmetro "MicrosoftAppId" em appSettings.json.
- reference
- ConversationReference
Uma referência à conversa para continuar.
- callback
- BotCallbackHandler
O método para chamar o turno de bot resultante.
- cancellationToken
- CancellationToken
Token de cancelamento.
Devoluções
Uma tarefa que representa o trabalho enfileirado para ser executado.
Implementações
Exceções
botAppId, reference, ou callback é null.
Observações
Chame esse método para enviar proativamente uma mensagem para uma conversa. A maioria das _channels exige que o utilizador inicie uma conversa com um bot antes de este poder enviar atividades ao utilizador.
Este método regista os seguintes serviços para o turno.
- IIdentity (chave = "BotIdentity"), um reivindica Identidade para o bot.
- IConnectorClient, o cliente conector de canal para usar esta curva.
Esta sobrecarga difere da implementação do Node por exigir que o BotId seja passado. O código .Net permite que vários bots sejam alojados num único adaptador, o que não é suportado pelo Node.
Ver também
- RunPipelineAsync(ITurnContext, BotCallbackHandler, CancellationToken)
- ProcessActivityAsync(String, Activity, BotCallbackHandler, CancellationToken)
Aplica-se a
ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, 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, 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
Parâmetros
- claimsIdentity
- ClaimsIdentity
A ClaimsIdentity pela conversa.
- reference
- ConversationReference
Uma referência à conversa para continuar.
- audience
- String
O público-alvo para o conector.
- callback
- BotCallbackHandler
O método para chamar o turno de bot resultante.
- cancellationToken
- CancellationToken
Token de cancelamento.
Devoluções
Uma tarefa que representa o trabalho enfileirado para ser executado.