Share via


InspectionMiddleware.ProcessCommandAsync Method

Definition

Indentifies open and attach commands and calls the appropriate method.

public System.Threading.Tasks.Task<bool> ProcessCommandAsync (Microsoft.Bot.Builder.ITurnContext turnContext, System.Threading.CancellationToken cancellationToken = default);
member this.ProcessCommandAsync : Microsoft.Bot.Builder.ITurnContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function ProcessCommandAsync (turnContext As ITurnContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

turnContext
ITurnContext

The turn context.

cancellationToken
CancellationToken

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

Returns

true if the command is open or attach, otherwise false.

Applies to