示例#1
0
        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);
        }
示例#2
0
 public RuleTreeException(RuleTreeSeed failedTree, RuleTreeReport failedReport = null)
 {
     FailedRuleTree       = failedTree;
     FailedRuleTreeReport = failedReport;
 }
示例#3
0
 public RuleTreeException(string message, Exception innerException, RuleTreeSeed failedTree, RuleTreeReport failedReport = null) : base(message, innerException)
 {
     FailedRuleTree       = failedTree;
     FailedRuleTreeReport = failedReport;
 }