Langue

InspectionMiddleware.ProcessCommandAsync Méthode

Définition

Met en retrait les commandes d’ouverture et d’attachement et appelle la méthode appropriée.

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)

Paramètres

turnContext
ITurnContext

Contexte de tour.

cancellationToken
CancellationToken

Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.

Retours

vrai si la commande est ouverte ou attachée, sinon fausse.

S’applique à