예제 #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();
            }
        }
예제 #2
0
파일: ZThread.cs 프로젝트: happyj/clrzmq4
        /// <summary>
        /// Stop the device in such a way that it can be restarted.
        /// </summary>
        public virtual void Stop()
        {
            EnsureNotDisposed();

            Cancellor?.Cancel();
        }