Exemple #1
0
        public override object Finish()
        {
            var count = (int)_counter.Finish();

            if (count == 0)
            {
                return(null);
            }

            var accumulator = _summator.GetAccumulator();

            accumulator.Divide(count);
            return(accumulator.GetValue());
        }
Exemple #2
0
        public override object Finish()
        {
            var count = Convert.ToInt32(_countAggregator.Finish());

            if (count == 0)
            {
                return(null);
            }

            var valueAccumulator = _valueAggregator.GetAccumulator();

            valueAccumulator.Divide(count);
            return(valueAccumulator.GetValue());
        }