Пример #1
0
        // ITimerService

        public ITimerInterval SubscribeInterval(TimeSpan interval, Action <ITimerService, ITimerInterval> callback, IActivitySchedule schedule)
        {
            TimerInterval result = new TimerInterval(this, interval, callback, schedule);

            _intervals = _intervals.Add(result);
            return(result);
        }
Пример #2
0
        // Internals for ITimerInterval, ITimerSlot

        internal void UnsubscribeInterval(TimerInterval timerInterval)
        {
            _intervals = _intervals.Remove(timerInterval);
        }