public virtual DetectLanguageResponse DetectLanguage(string text)
 {
     return(PolicyService.ExecuteRetryAndCapture400Errors(
                "ContentModeratorService.DetectLanguage",
                ApiKeys.ContentModeratorRetryInSeconds,
                () =>
     {
         var result = ContentModeratorRepository.DetectLanguage(text);
         return result;
     },
                null));
 }
        public virtual DetectLanguageResponse DetectLanguage(string text)
        {
            try
            {
                var result = ContentModeratorRepository.DetectLanguage(text);

                return(result);
            }
            catch (Exception ex)
            {
                Logger.Error("ContentModeratorService.DetectLanguage failed", this, ex);
            }

            return(null);
        }