public virtual AnalysisInDomainResult AnalyzeImageInDomain(string url, Model model) { return(PolicyService.ExecuteRetryAndCapture400Errors( "VisionService.AnalyzeImageInDomain", ApiKeys.ComputerVisionRetryInSeconds, () => { var result = VisionRepository.AnalyzeImageInDomain(url, model); return result; }, null)); }
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); }