      public bool HasBeenKilled
        {
            get
            {
                return _stopEvent.WaitOne(0);
            }
        }

        public bool ShouldStop
        {
            get
            {
                return this.HasBeenKilled;
            }
        }

        public void Dispose()
        {
            if (this._disposed)
            {
                return;
            }

            this._timer.Dispose();
            this._stopEvent.Dispose();

            this._disposed = true;
            GC.SuppressFinalize(this);
        }

        private void TimerCallback(object notUsedStateVariable)
        {
            this._stopEvent.Set();
        }
    }
}
