Esempio n. 1
0
        private IAggregate GetAggregate(Tuple tuple)
        {
            var aggregate = tuple.GetState <IAggregate>();

            if (aggregate == null)
            {
                aggregate = _aggregateFactory();
                tuple.SetState(aggregate);
            }
            return(aggregate);
        }
Esempio n. 2
0
        private IAggregator Aggregator(IExecutionContext context, Tuple tuple)
        {
            var aggregator = tuple.GetState <IAggregator>(this);

            if (aggregator == null)
            {
                aggregator = _aggregatorFactory.Create();
                tuple.SetState(this, aggregator);
                var results = aggregator.Initial();
                HandleAggregationResult(context, results, tuple);
            }
            return(aggregator);
        }
Esempio n. 3
0
        private IFactAggregator GetFactAggregator(Tuple tuple)
        {
            var factAggregator = tuple.GetState <IFactAggregator>(this);

            return(factAggregator);
        }
Esempio n. 4
0
        private IAggregator GetAggregator(Tuple tuple)
        {
            var aggregator = tuple.GetState <IAggregator>(this);

            return(aggregator);
        }