Ejemplo n.º 1
0
        /// <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();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Stop the device in such a way that it can be restarted.
        /// </summary>
        public virtual void Stop()
        {
            EnsureNotDisposed();

            Cancellor?.Cancel();
        }