コード例 #1
0
        public override void Invoke(TimerName name)
        {
            ICollection <Timer> timers = GetTimers(name);

            foreach (Timer timer in timers)
            {
                Delay delay = timer.Delay();
                _clock.forward(delay.Amount(), delay.Unit());
            }

            foreach (Timer timer in timers)
            {
                timer.Invoke();
            }

            _onDemandJobScheduler.runJob();
        }