Exemplo n.º 1
0
        public DateTime GetRangeEnd(DateTime dataItemTimestamp, int level)
        {
            if (level < 0 || level >= this.LevelCount)
            {
                throw new ArgumentOutOfRangeException("level");
            }

            YearMonthDirLevelTraits levelTraits = _dirLevelTraits[level];

            return(levelTraits.GetRangeEnd(levelTraits.GetRangeStart(dataItemTimestamp)));
        }
Exemplo n.º 2
0
        public IRepoFileContainerDescriptor GetTargetFolder(DateTime timestamp, int level)
        {
            if (level < 0 || level >= this.LevelCount)
            {
                throw new ArgumentOutOfRangeException("level");
            }

            YearMonthDirLevelTraits levelTraits = _dirLevelTraits[level];

            return(levelTraits.GetFolderDescriptorByRange(levelTraits.GetRangeStart(timestamp)));
        }