public async Task <RuleTreeReport> ExecuteAsync(RuleTree targetRuleTree, RuleTreeRecord targetRecord) { // TODO: Do all the work to execute the RuleTree - and return a report? Random rnd = new Random(); var Report = new RuleTreeReport(new RuleTreeSeed()) { Id = rnd.Next() }; // NOTE: To be determined where reports will be stored in the database, if at all // await _reportRepository.AddAsync(Report).ConfigureAwait(false); return(Report); }
public RuleTreeException(RuleTreeSeed failedTree, RuleTreeReport failedReport = null) { FailedRuleTree = failedTree; FailedRuleTreeReport = failedReport; }
public RuleTreeException(string message, Exception innerException, RuleTreeSeed failedTree, RuleTreeReport failedReport = null) : base(message, innerException) { FailedRuleTree = failedTree; FailedRuleTreeReport = failedReport; }