Taal

TrueSelector.SelectAsync(ActionContext, CancellationToken) Methode

Definitie

Kiest de beste regel om uit te voeren.

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))

Parameters

context
ActionContext

Het is DialogContext voor de huidige wending van het gesprek.

cancellationToken
CancellationToken

Optioneel, CancellationToken van de taak.

Retouren

Beste regel in de originele lijst om uit te voeren of -1 als die er niet is.

Van toepassing op