ภาษา

TestAdapter.SendTextToBotAsync Method

Definition

Processes a message activity from a user.

public virtual System.Threading.Tasks.Task SendTextToBotAsync(string userSays, Microsoft.Agents.Builder.AgentCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member SendTextToBotAsync : string * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SendTextToBotAsync : string * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function SendTextToBotAsync (userSays As String, callback As AgentCallbackHandler, cancellationToken As CancellationToken) As Task

Parameters

userSays
String

The text of the user's message.

callback
AgentCallbackHandler

The turn processing logic to use.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task that represents the work queued to execute.

Applies to

See also