Lingua

TestAdapter.CreateConversationAsync Metodo

Definizione

Crea una nuova conversazione sul canale specificato.

public System.Threading.Tasks.Task CreateConversationAsync(string channelId, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
override this.CreateConversationAsync : string * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CreateConversationAsync (channelId As String, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task

Parametri

channelId
String

ID del canale.

callback
BotCallbackHandler

La logica del bot da chiamare quando la conversazione viene creata.

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

Questo resetta il ActiveQueue, e non mantiene più code di conversazione.

Si applica a