public virtual OperationResult GetOperation(string operationLocationUrl) { try { var result = TextAnalyticsRepository.GetOperation(operationLocationUrl); return(result); } catch (Exception ex) { Logger.Error("SentimentService.GetOperation failed", this, ex); } return(null); }
public virtual OperationResult GetOperation(string operationLocationUrl) { return(PolicyService.ExecuteRetryAndCapture400Errors( "TextAnalyticsService.GetOperation", ApiKeys.TextAnalyticsRetryInSeconds, () => { var result = TextAnalyticsRepository.GetOperation(operationLocationUrl); return result; }, null)); }