コード例 #1
0
 public virtual AnalysisInDomainResult AnalyzeImageInDomain(string url, Model model)
 {
     return(PolicyService.ExecuteRetryAndCapture400Errors(
                "VisionService.AnalyzeImageInDomain",
                ApiKeys.ComputerVisionRetryInSeconds,
                () =>
     {
         var result = VisionRepository.AnalyzeImageInDomain(url, model);
         return result;
     },
                null));
 }
コード例 #2
0
        public virtual AnalysisInDomainResult AnalyzeImageInDomain(string url, Model model)
        {
            try
            {
                var result = VisionRepository.AnalyzeImageInDomain(url, model);

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

            return(null);
        }