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
CreateConversationAsync(String, String, MicrosoftAppCredentials, ConversationParameters, BotCallbackHandler, ConversationReference, CancellationToken) |
Obsoleti.
Crea una conversazione nel canale specificato. L'overload riceve un oggetto ConversationReference, incluso il tenant. |
CreateConversationAsync(String, String, AppCredentials, ConversationParameters, BotCallbackHandler, ConversationReference, CancellationToken) |
Obsoleti.
Crea una conversazione nel canale specificato. L'overload riceve un oggetto ConversationReference, incluso il tenant. |
CreateConversationAsync(String, String, MicrosoftAppCredentials, ConversationParameters, BotCallbackHandler, CancellationToken) |
Crea una conversazione nel canale specificato. |
CreateConversationAsync(String, String, AppCredentials, ConversationParameters, BotCallbackHandler, CancellationToken) |
Crea una conversazione nel 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 nel canale specificato. L'overload riceve un oggetto ConversationReference, incluso 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 per il 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 bot risultante.
- reference
- ConversationReference
Riferimento alla conversazione che contiene il tenant.
- cancellationToken
- CancellationToken
Token di annullamento utilizzabile da altri oggetti o thread per ricevere l'avviso dell'annullamento.
Restituisce
Attività che rappresenta la coda di lavoro 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 gruppo).
L'adapter tenta di creare una nuova conversazione nel canale e quindi invia un'attività conversationUpdate
tramite la pipeline middleware al callback
metodo.
Se la conversazione viene stabilita con gli utenti specificati, l'ID dell'attività conterrà l'ID Conversation 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 nel canale specificato. L'overload riceve un oggetto ConversationReference, incluso 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 per il 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 bot risultante.
- reference
- ConversationReference
Riferimento alla conversazione che contiene il tenant.
- cancellationToken
- CancellationToken
Token di annullamento utilizzabile da altri oggetti o thread per ricevere l'avviso dell'annullamento.
Restituisce
Attività che rappresenta la coda di lavoro 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 gruppo).
L'adapter tenta di creare una nuova conversazione nel canale e quindi invia un'attività conversationUpdate
tramite la pipeline middleware al callback
metodo.
Se la conversazione viene stabilita con gli utenti specificati, l'ID dell'attività conterrà l'ID Conversation della nuova conversazione.
Si applica a
CreateConversationAsync(String, String, MicrosoftAppCredentials, ConversationParameters, BotCallbackHandler, CancellationToken)
Crea una conversazione nel 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 per il 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 bot risultante.
- cancellationToken
- CancellationToken
Token di annullamento utilizzabile da altri oggetti o thread per ricevere l'avviso dell'annullamento.
Restituisce
Attività che rappresenta la coda di lavoro 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 gruppo).
L'adapter tenta di creare una nuova conversazione nel canale e quindi invia un'attività conversationUpdate
tramite la pipeline middleware al callback
metodo.
Se la conversazione viene stabilita con gli utenti specificati, l'ID dell'attività conterrà l'ID Conversation della nuova conversazione.
Si applica a
CreateConversationAsync(String, String, AppCredentials, ConversationParameters, BotCallbackHandler, CancellationToken)
Crea una conversazione nel 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 per il 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 bot risultante.
- cancellationToken
- CancellationToken
Token di annullamento utilizzabile da altri oggetti o thread per ricevere l'avviso dell'annullamento.
Restituisce
Attività che rappresenta la coda di lavoro 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 gruppo).
L'adapter tenta di creare una nuova conversazione nel canale e quindi invia un'attività conversationUpdate
tramite la pipeline middleware al callback
metodo.
Se la conversazione viene stabilita con gli utenti specificati, l'ID dell'attività conterrà l'ID Conversation della nuova conversazione.