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); }
public virtual string DownloadKnowledgeBase(Guid knowledgeBaseId) { return(PolicyService.ExecuteRetryAndCapture400Errors( "QnAMakerService.DownloadKnowledgeBase", ApiKeys.QnARetryInSeconds, () => { var result = QnAMakerRepository.DownloadKnowledgeBase(knowledgeBaseId); return result; }, null)); }