예제 #1
0
 public SingularScheduledTask(FutureTaskRegistry registry, TimeSpan delay, Action action)
 {
     this.registry = registry;
     this.delay    = delay;
     this.action   = action;
     this.created  = DateTime.Now;
     this.registry.register(this);
 }
예제 #2
0
 public ReoccurringScheduledTask(FutureTaskRegistry registry,
                                 TimeSpan delay, Action action)
 {
     this.registry = registry;
     this.delay    = delay;
     this.action   = action;
     this.lastFire = DateTime.Now;
     this.registry.register(this);
 }