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

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