TestAdapter.SendTextToBotAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.