Beispiel #1
0
 private ITimer Schedule(TimeSpan when, Action<ITimer> callback, bool recurring)
 {
     var timer = new TimerImplementation(when, callback, recurring);
     timer.Start();
     activeTimers.Add(new WeakReference(timer));
     return timer;
 }
        private ITimer Schedule(TimeSpan when, Action <ITimer> callback, bool recurring)
        {
            var timer = new TimerImplementation(when, callback, recurring);

            timer.Start();
            activeTimers.Add(new WeakReference(timer));
            return(timer);
        }