Exemple #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;
 }
Exemple #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;
 }