Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public virtual LanguageResponse GetLanguages(LanguageRequest request)
 {
     return(PolicyService.ExecuteRetryAndCapture400Errors(
                "TextAnalyticsService.GetLanguages",
                ApiKeys.TextAnalyticsRetryInSeconds,
                () =>
     {
         var result = TextAnalyticsRepository.GetLanguages(request);
         return result;
     },
                null));
 }