OrchestratorAdaptiveRecognizer.RecognizeAsync(DialogContext, Activity, CancellationToken, Dictionary<String,String>, Dictionary<String,Double>) Method

Definition

Return recognition results.

public override System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc, 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 (dc 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)

Parameters

dc
DialogContext

Context object containing information for a single turn of conversation with a user.

activity
Activity

The incoming activity received from the user. The Text property value is used as the query text for QnA Maker.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

telemetryProperties
Dictionary<String,String>

Additional properties to be logged to telemetry with the LuisResult event.

telemetryMetrics
Dictionary<String,Double>

Additional metrics to be logged to telemetry with the LuisResult event.

Returns

Task<RecognizerResult>

A RecognizerResult containing the QnA Maker result.

Applies to