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

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