ConditionalSelector.SelectAsync(ActionContext, CancellationToken) Method

Definition

Selects the best rule to execute.

public override System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Bot.Builder.Dialogs.Adaptive.Conditions.OnCondition>> SelectAsync (Microsoft.Bot.Builder.Dialogs.Adaptive.ActionContext actionContext, 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 (actionContext As ActionContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of OnCondition))

Parameters

actionContext
ActionContext

Dialog context for evaluation.

cancellationToken
CancellationToken

Optional, CancellationToken of the task.

Returns

Task<IReadOnlyList<OnCondition>>

Best rule in original list to execute or -1 if none.

Applies to