public SeriesConfiguration(SeriesSettings settings) { if (settings.Aggregations == null || !settings.Aggregations.Any()) { throw new Exception("No aggregations set in series settings."); } AggregationsSecondsDescending = settings.Aggregations.OrderByDescending(x => x); HighestAggregationSeconds = AggregationsSecondsDescending.First(); LowestAggregationSeconds = AggregationsSecondsDescending.Last(); }
public SeriesKnower(SeriesSettings seriesSettings) { _seriesSettings = seriesSettings; }