Compartilhar via


TriggerSelector.SelectAsync(ActionContext, CancellationToken) Método

Definição

Selecione a melhor regra a ser executada.

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

Parâmetros

actionContext
ActionContext

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

cancellationToken
CancellationToken

Token de cancelamento.

Retornos

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

Aplica-se a