示例#1
0
        public override void PropagateAssert(IExecutionContext context, Fact fact)
        {
            var tuples = MatchingTuples(context, fact);

            foreach (var tuple in tuples)
            {
                IAggregate aggregate = GetAggregate(tuple);
                var        result    = aggregate.Add(UnwrapFact(fact).Object);
                HandleAggregateResult(context, result, tuple, aggregate);
            }
        }
示例#2
0
        public override void PropagateAssert(IExecutionContext context, Tuple tuple)
        {
            IAggregate aggregate     = GetAggregate(tuple);
            var        matchingFacts = MatchingFacts(context, tuple);

            foreach (var matchingFact in matchingFacts)
            {
                var result = aggregate.Add(UnwrapFact(matchingFact).Object);
                HandleAggregateResult(context, result, tuple, aggregate);
            }
        }