コード例 #1
0
ファイル: TimeoutDispatcher.cs プロジェクト: kthompson/Upnp
 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
ファイル: TimeoutDispatcher.cs プロジェクト: automaters/Upnp
 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;
 }