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