public virtual bool PublishKnowledgeBase(Guid knowledgeBaseId) { try { QnAMakerRepository.PublishKnowledgeBase(knowledgeBaseId); return(true); } catch (Exception ex) { Logger.Error("QnAMakerService.PublishKnowledgeBase failed", this, ex); } return(false); }
public virtual bool PublishKnowledgeBase(Guid knowledgeBaseId) { return(PolicyService.ExecuteRetryAndCapture400Errors( "QnAMakerService.PublishKnowledgeBase", ApiKeys.QnARetryInSeconds, () => { QnAMakerRepository.PublishKnowledgeBase(knowledgeBaseId); return true; }, false)); }