public virtual LanguageResponse GetLanguages(LanguageRequest request) { try { var result = TextAnalyticsRepository.GetLanguages(request); return(result); } catch (Exception ex) { Logger.Error("LanguageService.GetLanguages failed", this, ex); } return(null); }
public virtual LanguageResponse GetLanguages(LanguageRequest request) { return(PolicyService.ExecuteRetryAndCapture400Errors( "TextAnalyticsService.GetLanguages", ApiKeys.TextAnalyticsRetryInSeconds, () => { var result = TextAnalyticsRepository.GetLanguages(request); return result; }, null)); }