public void Cancel() { lock (this.timerLock) { this.cancelled = true; DelayedCall.Unregister(this); this.timer.Stop(); } }
protected virtual void Timer_Elapsed(object o, ElapsedEventArgs e) { this.FireNow(); DelayedCall.Unregister(this); }
public void FireNow() { this.OnFire(); DelayedCall.Unregister(this); }
public void Dispose() { DelayedCall.Unregister(this); this.timer.Dispose(); }