예제 #1
0
        public IEnumerable <Measurement> Aggregate(
            IGroupingStrategy groupingStrategy,
            IMeasurementAggregator aggregator)
        {
            var partitions = groupingStrategy.Group(_measurements);

            foreach (var partition in partitions)
            {
                yield return(aggregator.Aggregate(partition));
            }
        }
 public StatsController(IMeasurementAggregator measurementAggregator)
 {
     this.measurementAggregator = measurementAggregator;
 }