Share via


TestAdapter.CreateConversationAsync Method

Definition

Creates a new conversation on the specified channel.

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

Parameters

channelId
String

The ID of the channel.

callback
BotCallbackHandler

The bot logic to call when the conversation is created.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A task that represents the work queued to execute.

Remarks

This resets the ActiveQueue, and does not maintain multiple conversation queues.

Applies to