예제 #1
0
        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.");
        }
예제 #2
0
 protected bool Equals(HistoryPeriod other)
 {
     return(Value.Equals(other.Value));
 }