BotFrameworkAdapter.CreateConversationAsync 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 |
|---|---|
| CreateConversationAsync(String, String, MicrosoftAppCredentials, ConversationParameters, BotCallbackHandler, ConversationReference, CancellationToken) |
Obsoleti.
Crea una conversazione sul canale specificato. Overload riceve un ConversationReference che include il tenant. |
| CreateConversationAsync(String, String, AppCredentials, ConversationParameters, BotCallbackHandler, ConversationReference, CancellationToken) |
Obsoleti.
Crea una conversazione sul canale specificato. Overload riceve un ConversationReference che include il tenant. |
| CreateConversationAsync(String, String, MicrosoftAppCredentials, ConversationParameters, BotCallbackHandler, CancellationToken) |
Crea una conversazione sul canale specificato. |
| CreateConversationAsync(String, String, AppCredentials, ConversationParameters, BotCallbackHandler, CancellationToken) |
Crea una conversazione sul canale specificato. |
CreateConversationAsync(String, String, MicrosoftAppCredentials, ConversationParameters, BotCallbackHandler, ConversationReference, CancellationToken)
Attenzione
This method is now obsolete because the ConversationReference argument is now redundant. Use the overload without this argument.
Crea una conversazione sul canale specificato. Overload riceve un ConversationReference che include il tenant.
[System.Obsolete("This method is now obsolete because the ConversationReference argument is now redundant. Use the overload without this argument.")]
public virtual System.Threading.Tasks.Task CreateConversationAsync(string channelId, string serviceUrl, Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials credentials, Microsoft.Bot.Schema.ConversationParameters conversationParameters, Microsoft.Bot.Builder.BotCallbackHandler callback, Microsoft.Bot.Schema.ConversationReference reference, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("This method is now obsolete because the ConversationReference argument is now redundant. Use the overload without this argument.")>]
override this.CreateConversationAsync : string * string * Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials * Microsoft.Bot.Schema.ConversationParameters * Microsoft.Bot.Builder.BotCallbackHandler * Microsoft.Bot.Schema.ConversationReference * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CreateConversationAsync (channelId As String, serviceUrl As String, credentials As MicrosoftAppCredentials, conversationParameters As ConversationParameters, callback As BotCallbackHandler, reference As ConversationReference, cancellationToken As CancellationToken) As Task
Parametri
- channelId
- String
ID del canale.
- serviceUrl
- String
Endpoint dell'URL del servizio del canale.
- credentials
- MicrosoftAppCredentials
Credenziali dell'applicazione per il bot.
- conversationParameters
- ConversationParameters
Informazioni sulla conversazione da usare per creare la conversazione.
- callback
- BotCallbackHandler
Metodo da chiamare per il turno del bot risultante.
- reference
- ConversationReference
Riferimento di conversazione che contiene il tenant.
- cancellationToken
- CancellationToken
Token di annullamento che può essere utilizzato da altri oggetti o thread per ricevere un avviso di annullamento.
Valori restituiti
Attività che rappresenta il lavoro in coda da eseguire.
- Attributi
Commenti
Per avviare una conversazione, il bot deve conoscere le informazioni sull'account e le informazioni sull'account dell'utente su tale canale. La maggior parte _channels supporta solo l'avvio di una conversazione diretta (non di gruppo).
L'adapter tenta di creare una nuova conversazione sul canale e quindi invia un'attività conversationUpdate tramite la pipeline middleware al metodo callback.
Se la conversazione viene stabilita con gli utenti specificati, l'ID del Conversation dell'attività conterrà l'ID della nuova conversazione.
Si applica a
CreateConversationAsync(String, String, AppCredentials, ConversationParameters, BotCallbackHandler, ConversationReference, CancellationToken)
Attenzione
This method is now obsolete because the ConversationReference argument is now redundant. Use the overload without this argument.
Crea una conversazione sul canale specificato. Overload riceve un ConversationReference che include il tenant.
[System.Obsolete("This method is now obsolete because the ConversationReference argument is now redundant. Use the overload without this argument.")]
public virtual System.Threading.Tasks.Task CreateConversationAsync(string channelId, string serviceUrl, Microsoft.Bot.Connector.Authentication.AppCredentials credentials, Microsoft.Bot.Schema.ConversationParameters conversationParameters, Microsoft.Bot.Builder.BotCallbackHandler callback, Microsoft.Bot.Schema.ConversationReference reference, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("This method is now obsolete because the ConversationReference argument is now redundant. Use the overload without this argument.")>]
override this.CreateConversationAsync : string * string * Microsoft.Bot.Connector.Authentication.AppCredentials * Microsoft.Bot.Schema.ConversationParameters * Microsoft.Bot.Builder.BotCallbackHandler * Microsoft.Bot.Schema.ConversationReference * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CreateConversationAsync (channelId As String, serviceUrl As String, credentials As AppCredentials, conversationParameters As ConversationParameters, callback As BotCallbackHandler, reference As ConversationReference, cancellationToken As CancellationToken) As Task
Parametri
- channelId
- String
ID del canale.
- serviceUrl
- String
Endpoint dell'URL del servizio del canale.
- credentials
- AppCredentials
Credenziali dell'applicazione per il bot.
- conversationParameters
- ConversationParameters
Informazioni sulla conversazione da usare per creare la conversazione.
- callback
- BotCallbackHandler
Metodo da chiamare per il turno del bot risultante.
- reference
- ConversationReference
Riferimento di conversazione che contiene il tenant.
- cancellationToken
- CancellationToken
Token di annullamento che può essere utilizzato da altri oggetti o thread per ricevere un avviso di annullamento.
Valori restituiti
Attività che rappresenta il lavoro in coda da eseguire.
- Attributi
Commenti
Per avviare una conversazione, il bot deve conoscere le informazioni sull'account e le informazioni sull'account dell'utente su tale canale. La maggior parte _channels supporta solo l'avvio di una conversazione diretta (non di gruppo).
L'adapter tenta di creare una nuova conversazione sul canale e quindi invia un'attività conversationUpdate tramite la pipeline middleware al metodo callback.
Se la conversazione viene stabilita con gli utenti specificati, l'ID del Conversation dell'attività conterrà l'ID della nuova conversazione.
Si applica a
CreateConversationAsync(String, String, MicrosoftAppCredentials, ConversationParameters, BotCallbackHandler, CancellationToken)
Crea una conversazione sul canale specificato.
public virtual System.Threading.Tasks.Task CreateConversationAsync(string channelId, string serviceUrl, Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials credentials, Microsoft.Bot.Schema.ConversationParameters conversationParameters, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
override this.CreateConversationAsync : string * string * Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials * Microsoft.Bot.Schema.ConversationParameters * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CreateConversationAsync (channelId As String, serviceUrl As String, credentials As MicrosoftAppCredentials, conversationParameters As ConversationParameters, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task
Parametri
- channelId
- String
ID del canale.
- serviceUrl
- String
Endpoint dell'URL del servizio del canale.
- credentials
- MicrosoftAppCredentials
Credenziali dell'applicazione per il bot.
- conversationParameters
- ConversationParameters
Informazioni sulla conversazione da usare per creare la conversazione.
- callback
- BotCallbackHandler
Metodo da chiamare per il turno del bot risultante.
- cancellationToken
- CancellationToken
Token di annullamento che può essere utilizzato da altri oggetti o thread per ricevere un avviso di annullamento.
Valori restituiti
Attività che rappresenta il lavoro in coda da eseguire.
Commenti
Per avviare una conversazione, il bot deve conoscere le informazioni sull'account e le informazioni sull'account dell'utente su tale canale. La maggior parte _channels supporta solo l'avvio di una conversazione diretta (non di gruppo).
L'adapter tenta di creare una nuova conversazione sul canale e quindi invia un'attività conversationUpdate tramite la pipeline middleware al metodo callback.
Se la conversazione viene stabilita con gli utenti specificati, l'ID del Conversation dell'attività conterrà l'ID della nuova conversazione.
Si applica a
CreateConversationAsync(String, String, AppCredentials, ConversationParameters, BotCallbackHandler, CancellationToken)
Crea una conversazione sul canale specificato.
public virtual System.Threading.Tasks.Task CreateConversationAsync(string channelId, string serviceUrl, Microsoft.Bot.Connector.Authentication.AppCredentials credentials, Microsoft.Bot.Schema.ConversationParameters conversationParameters, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
override this.CreateConversationAsync : string * string * Microsoft.Bot.Connector.Authentication.AppCredentials * Microsoft.Bot.Schema.ConversationParameters * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CreateConversationAsync (channelId As String, serviceUrl As String, credentials As AppCredentials, conversationParameters As ConversationParameters, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task
Parametri
- channelId
- String
ID del canale.
- serviceUrl
- String
Endpoint dell'URL del servizio del canale.
- credentials
- AppCredentials
Credenziali dell'applicazione per il bot.
- conversationParameters
- ConversationParameters
Informazioni sulla conversazione da usare per creare la conversazione.
- callback
- BotCallbackHandler
Metodo da chiamare per il turno del bot risultante.
- cancellationToken
- CancellationToken
Token di annullamento che può essere utilizzato da altri oggetti o thread per ricevere un avviso di annullamento.
Valori restituiti
Attività che rappresenta il lavoro in coda da eseguire.
Commenti
Per avviare una conversazione, il bot deve conoscere le informazioni sull'account e le informazioni sull'account dell'utente su tale canale. La maggior parte _channels supporta solo l'avvio di una conversazione diretta (non di gruppo).
L'adapter tenta di creare una nuova conversazione sul canale e quindi invia un'attività conversationUpdate tramite la pipeline middleware al metodo callback.
Se la conversazione viene stabilita con gli utenti specificati, l'ID del Conversation dell'attività conterrà l'ID della nuova conversazione.