public virtual KeyPhraseSentimentResponse GetKeyPhrases(SentimentRequest request) { return(PolicyService.ExecuteRetryAndCapture400Errors( "TextAnalyticsService.GetKeyPhrases", ApiKeys.TextAnalyticsRetryInSeconds, () => { var result = TextAnalyticsRepository.GetKeyPhrases(request); return result; }, null)); }
public virtual KeyPhraseSentimentResponse GetKeyPhrases(SentimentRequest request) { try { var result = TextAnalyticsRepository.GetKeyPhrases(request); return(result); } catch (Exception ex) { Logger.Error("SentimentService.GetKeyPhrasesAsync failed", this, ex); } return(null); }