Del via


LuisRecognizer.FillLuisEventPropertiesAsync Method

Definition

Fills the event properties for LuisResult event for telemetry. These properties are logged when the recognizer is called.

protected System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string,string>> FillLuisEventPropertiesAsync (Microsoft.Bot.Builder.RecognizerResult recognizerResult, Microsoft.Bot.Builder.ITurnContext turnContext, System.Collections.Generic.Dictionary<string,string> telemetryProperties = default, System.Threading.CancellationToken cancellationToken = default);
member this.FillLuisEventPropertiesAsync : Microsoft.Bot.Builder.RecognizerResult * Microsoft.Bot.Builder.ITurnContext * System.Collections.Generic.Dictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string, string>>
Protected Function FillLuisEventPropertiesAsync (recognizerResult As RecognizerResult, turnContext As ITurnContext, Optional telemetryProperties As Dictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Dictionary(Of String, String))

Parameters

recognizerResult
RecognizerResult

Last activity sent from user.

turnContext
ITurnContext

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

telemetryProperties
Dictionary<String,String>

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

cancellationToken
CancellationToken

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

Returns

A dictionary that is sent as "Properties" to IBotTelemetryClient.TrackEvent method for the BotMessageSend event.

Applies to