public IntervalsStore <BreakdownT> .IntervalsBreakdown[] GetIntervals(HistoryPeriod period, DateTime now) { if (histories.TryGetValue(period, out var store)) { return(store.GetIntervals(now)); } throw new Exception("Unsupported history size."); }
protected bool Equals(HistoryPeriod other) { return(Value.Equals(other.Value)); }