/// <inhericdoc />
        public void OnSuggestionAccepted(string acceptedSuggestion)
        {
            IDictionary <string, string> localSuggestedTexts = null;

            lock (_userAcceptedAndSuggestion)
            {
                localSuggestedTexts = _userAcceptedAndSuggestion;
            }

            if (localSuggestedTexts.TryGetValue(acceptedSuggestion, out var suggestedText))
            {
                _telemetryClient.OnSuggestionAccepted(suggestedText);
            }
            else
            {
                _telemetryClient.OnSuggestionAccepted("NoRecord");
            }
        }
 /// <inhericdoc />
 public void OnSuggestionAccepted(string acceptedSuggestion)
 {
     _telemetryClient.OnSuggestionAccepted(new SuggestionAcceptedTelemetryData(acceptedSuggestion));
 }
Exemple #3
0
 /// <inhericdoc />
 public void OnSuggestionAccepted(string clientId, uint session, string acceptedSuggestion)
 {
     _telemetryClient.OnSuggestionAccepted(new SuggestionAcceptedTelemetryData(clientId, session, acceptedSuggestion));
 }
Exemple #4
0
 /// <inhericdoc />
 public void OnSuggestionAccepted(PredictionClient client, uint session, string acceptedSuggestion)
 {
     _telemetryClient.OnSuggestionAccepted(new SuggestionAcceptedTelemetryData(client, session, acceptedSuggestion));
 }