Delen via


RandomSelector.SelectAsync(ActionContext, CancellationToken) Methode

Definitie

Selecteert 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

De DialogContext voor de huidige wending van het gesprek.

cancellationToken
CancellationToken

CancellationToken van de taak.

Retouren

De beste regel in de oorspronkelijke lijst om uit te voeren of -1 als er geen is.

Van toepassing op