Freigeben über


TrueSelector.SelectAsync(ActionContext, CancellationToken) Methode

Definition

Wählt die am besten auszuführende Regel aus.

public override System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Bot.Builder.Dialogs.Adaptive.Conditions.OnCondition>> SelectAsync (Microsoft.Bot.Builder.Dialogs.Adaptive.ActionContext context, System.Threading.CancellationToken cancellationToken = default);
override this.SelectAsync : Microsoft.Bot.Builder.Dialogs.Adaptive.ActionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Bot.Builder.Dialogs.Adaptive.Conditions.OnCondition>>
Public Overrides Function SelectAsync (context As ActionContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of OnCondition))

Parameter

context
ActionContext

Die DialogContext für den aktuellen Unterhaltungswechsel.

cancellationToken
CancellationToken

Optional, CancellationToken der Aufgabe.

Gibt zurück

Beste Regel in der ursprünglichen Liste, die ausgeführt werden soll, oder -1, wenn keine.

Gilt für: