Compartilhar via


ConditionalSelector.SelectAsync(ActionContext, CancellationToken) Método

Definição

Seleciona a melhor regra a ser executada.

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

Parâmetros

actionContext
ActionContext

Contexto da caixa de diálogo para avaliação.

cancellationToken
CancellationToken

Opcional, CancellationToken da tarefa.

Retornos

Melhor regra na lista original a ser executada ou -1 se nenhuma.

Aplica-se a