public TaskBase(int runEverySecs, Cancellation cancellation = null)
 {
     log.Debug("Creating TaskBase");
     this.runEverySecs = runEverySecs;
     this.cancellation = cancellation;
     Init();
 }
 public TaskBase(Cancellation cancellation = null)
 {
     this.cancellation = cancellation;
     Init();
 }
 public TaskManager(Cancellation cancellation = null, WaitOnStart waitOnStart = WaitOnStart.Continue)
 {
     log.Debug("Creating TaskManager");
     this.cancellation = cancellation ?? new Cancellation();
     this.waitOnStart  = waitOnStart;
 }