TestAdapter.CreateConversationAsync Metodo

Definizione

Crea una nuova conversazione nel 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

Logica del bot da chiamare quando viene creata la conversazione.

cancellationToken
CancellationToken

Token di annullamento utilizzabile da altri oggetti o thread per ricevere l'avviso dell'annullamento.

Restituisce

Attività che rappresenta il lavoro in coda da eseguire.

Commenti

In questo modo viene reimpostato ActiveQueuee non vengono mantenute più code di conversazione.

Si applica a