示例#1
0
 public TimeoutObject(TimeoutDispatcher dispatcher, Action tick, Action <Exception> exceptionHandler, TimeSpan delay, TimeSpan interval)
 {
     this.Dispatcher       = dispatcher;
     this.Tick             = tick;
     this.ExceptionHandler = exceptionHandler;
     this.NextTick         = DateTime.Now.Add(delay);
     this.Interval         = interval;
 }
示例#2
0
 public TimeoutObject(TimeoutDispatcher dispatcher, Action tick, Action<Exception> exceptionHandler, TimeSpan delay, TimeSpan interval)
 {
     this.Dispatcher = dispatcher;
     this.Tick = tick;
     this.ExceptionHandler = exceptionHandler;
     this.NextTick = DateTime.Now.Add(delay);
     this.Interval = interval;
 }