BotFrameworkAdapter.ContinueConversationAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
| Nome | Descrizione |
|---|---|
| ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken) |
Invia un messaggio proattivo dal bot a una conversazione. |
| ContinueConversationAsync(String, ConversationReference, BotCallbackHandler, CancellationToken) |
Invia un messaggio proattivo dal bot a una conversazione. |
| ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, BotCallbackHandler, CancellationToken) |
Invia un messaggio proattivo dal bot a una conversazione. |
ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)
Invia un messaggio proattivo dal bot a una conversazione.
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
Parametri
- claimsIdentity
- ClaimsIdentity
A ClaimsIdentity per la conversazione.
- reference
- ConversationReference
Riferimento alla conversazione da continuare.
- callback
- BotCallbackHandler
Metodo da chiamare per il turno del bot risultante.
- cancellationToken
- CancellationToken
Token di annullamento.
Valori restituiti
Attività che rappresenta il lavoro in coda da eseguire.
Commenti
Chiamare questo metodo per inviare in modo proattivo un messaggio a una conversazione. La maggior parte delle _channels richiede che l'utente inizi una conversazione con un bot prima che il bot possa inviare attività all'utente.
Questo metodo registra i seguenti servizi per la virata.
- IIdentity (chiave = "BotIdentity"), un rivendica Identità per il bot.
- IConnectorClient, il client connettore di canale per utilizzare questa curva.
Vedi anche
- RunPipelineAsync(ITurnContext, BotCallbackHandler, CancellationToken)
- ProcessActivityAsync(String, Activity, BotCallbackHandler, CancellationToken)
Si applica a
ContinueConversationAsync(String, ConversationReference, BotCallbackHandler, CancellationToken)
Invia un messaggio proattivo dal bot a una conversazione.
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
Parametri
- botAppId
- String
ID applicazione del bot. Si tratta dell'id app restituito dalla registrazione del portale e in genere si trova nel parametro "MicrosoftAppId" in appSettings.json.
- reference
- ConversationReference
Riferimento alla conversazione da continuare.
- callback
- BotCallbackHandler
Metodo da chiamare per il turno del bot risultante.
- cancellationToken
- CancellationToken
Token di annullamento.
Valori restituiti
Attività che rappresenta il lavoro in coda da eseguire.
Implementazioni
Eccezioni
botAppId, referenceo callback è null.
Commenti
Chiamare questo metodo per inviare in modo proattivo un messaggio a una conversazione. La maggior parte delle _channels richiede che l'utente inizi una conversazione con un bot prima che il bot possa inviare attività all'utente.
Questo metodo registra i seguenti servizi per la virata.
- IIdentity (chiave = "BotIdentity"), un rivendica Identità per il bot.
- IConnectorClient, il client connettore di canale per utilizzare questa curva.
Questo sovraccarico differisce dall'implementazione di Node perché richiede che il BotId venga passato in ingresso. Il codice .NET consente di ospitare più bot in un'unica scheda che non è un elemento supportato da Node.
Vedi anche
- RunPipelineAsync(ITurnContext, BotCallbackHandler, CancellationToken)
- ProcessActivityAsync(String, Activity, BotCallbackHandler, CancellationToken)
Si applica a
ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, BotCallbackHandler, CancellationToken)
Invia un messaggio proattivo dal bot a una conversazione.
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
Parametri
- claimsIdentity
- ClaimsIdentity
A ClaimsIdentity per la conversazione.
- reference
- ConversationReference
Riferimento alla conversazione da continuare.
- audience
- String
Destinatari di destinazione per il connettore.
- callback
- BotCallbackHandler
Metodo da chiamare per il turno del bot risultante.
- cancellationToken
- CancellationToken
Token di annullamento.
Valori restituiti
Attività che rappresenta il lavoro in coda da eseguire.