public void Stop() { IsRunning = false; task.Stop(); }
public void Dispose() { disposed = true; timer.Stop(); }