Freigeben über


FirstSelector.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);
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, cancellationToken As CancellationToken) 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: