public HtmlRenderer(string outputDirectory, StaffHistory history) : this(outputDirectory)
        {
            m_TimeStamp = DateTime.UtcNow;

            m_Objects = new ObjectCollection();

            history.Render(m_Objects);
        }
Example #2
0
        public static void Initialize()
        {
            if (!Enabled)
            {
                return;
            }
            _StatsHistory = new SnapshotHistory();
            _StatsHistory.Load();
            StaffHistory = new StaffHistory();
            StaffHistory.Load();
            var now       = DateTime.UtcNow;
            var date      = now.Date;
            var timeOfDay = now.TimeOfDay;

            _GenerateTime = date + TimeSpan.FromHours(Math.Ceiling(timeOfDay.TotalHours));
            Timer.DelayCall(TimeSpan.FromMinutes(0.5), TimeSpan.FromMinutes(0.5), new TimerCallback(CheckRegenerate));
        }
Example #3
0
 public int GetPageCount(PageResolution res, DateTime min, DateTime max)
 {
     return(StaffHistory.GetPageCount(m_Pages, res, min, max));
 }