Compartilhar via


RegexRecognizer.RecognizeAsync Método

Definição

Executa DialogContext.TurnContext.Activity atual por meio de um reconhecedor e retorna um RecognizerResult.

public override System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken, System.Collections.Generic.Dictionary<string,string> telemetryProperties = default, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default);
override this.RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
Public Overrides Function RecognizeAsync (dialogContext As DialogContext, activity As Activity, cancellationToken As CancellationToken, Optional telemetryProperties As Dictionary(Of String, String) = Nothing, Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing) As Task(Of RecognizerResult)

Parâmetros

dialogContext
DialogContext

O DialogContext para a virada atual da conversa.

activity
Activity

Activity para reconhecer.

cancellationToken
CancellationToken

Opcional, CancellationToken da tarefa.

telemetryProperties
Dictionary<String,String>

Propriedades adicionais opcionais a serem registradas na telemetria com o evento LuisResult.

telemetryMetrics
Dictionary<String,Double>

Opcional, métricas adicionais a serem registradas na telemetria com o evento LuisResult.

Retornos

Análise do enunciado.

Aplica-se a