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