TriggerSelector.SelectAsync(ActionContext, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Select the best rule to execute.
public abstract 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);
abstract member 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 MustOverride 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
Cancellation token.
Returns
Best rule in original list to execute or -1 if none.