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