예제 #1
0
        public virtual string DownloadKnowledgeBase(Guid knowledgeBaseId)
        {
            try {
                var result = QnAMakerRepository.DownloadKnowledgeBase(knowledgeBaseId);

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

            return(null);
        }
예제 #2
0
 public virtual string DownloadKnowledgeBase(Guid knowledgeBaseId)
 {
     return(PolicyService.ExecuteRetryAndCapture400Errors(
                "QnAMakerService.DownloadKnowledgeBase",
                ApiKeys.QnARetryInSeconds,
                () =>
     {
         var result = QnAMakerRepository.DownloadKnowledgeBase(knowledgeBaseId);
         return result;
     },
                null));
 }