Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public virtual OperationResult GetOperation(string operationLocationUrl)
 {
     return(PolicyService.ExecuteRetryAndCapture400Errors(
                "TextAnalyticsService.GetOperation",
                ApiKeys.TextAnalyticsRetryInSeconds,
                () =>
     {
         var result = TextAnalyticsRepository.GetOperation(operationLocationUrl);
         return result;
     },
                null));
 }