/// <summary> /// Stop the device in such a way that it can be restarted. /// </summary> public virtual void Stop() { EnsureNotDisposed(); if (_thread != null) { Debug.Assert(Cancellor != null); Cancellor.Cancel(); } }
/// <summary> /// Stop the device in such a way that it can be restarted. /// </summary> public virtual void Stop() { EnsureNotDisposed(); Cancellor?.Cancel(); }