Пример #1
0
        internal IEnumerable <DateTimeZone> GetHoles(
            TypeInc typeInc,
            DateTimeZone fromTime,
            int depth,
            DateTimeUtc deepSyncTime,
            TagDef[] tagsWatch)
        {
            Discrete disc;
            int      discVal;

            GetDiscrette(typeInc, out disc, out discVal);

            DateTimeZone beginTime = RequestParam.GetFromSync(() => fromTime, true, disc, discVal);

            var holes = driver.Storage.ReadHoles(
                RequestParam.HolesMode,
                beginTime,
                depth - 1,
                deepSyncTime,
                tagsWatch);

            this.driver.Log.Trace.Info(2, SR.ReadHoles, fromTime, depth, deepSyncTime, beginTime, holes.Count());
            return(holes);
        }