Beispiel #1
0
        public static WeakTimer StartWeakTimer(IWeakTimerSubscriber subscriber, TimeSpan interval)
        {
            var timer = new WeakTimer(subscriber)
            {
                Interval = interval
            };

            timer.Start();
            return(timer);
        }
Beispiel #2
0
 public static WeakTimer StartWeakTimer(IWeakTimerSubscriber subscriber, TimeSpan interval)
 {
     var timer = new WeakTimer(subscriber) {Interval = interval};
     timer.Start();
     return timer;
 }