Exemple #1
0
        public void Execute(int slices)
        {
            Console.WriteLine(nameof(HistoryAggregator) + "By slices");

            // Original, the newest commit comes first but it should be reverse.
            IEnumerable <Commit> history = _historyStorage.Read().Reverse();

            // The last commit contains the history start date.
            DateTime startTime = history.First().Date;
            DateTime endTime   = history.Last().Date;

            TimeSpan intervalForSlices = (endTime - startTime).Divide(10);

            InternalExecute(startTime, intervalForSlices, history);
        }