Пример #1
0
        public void QueueWorkItem(Action workItem)
        {
            if (_IsDisposed)
            {
                QueuedWhileDisposed();
                return;
            }

            _JobQueue.QueueWorkItem(workItem);
        }
Пример #2
0
        public void QueueWorkItem(Action workItem)
        {
            if (_IsDisposed)
            {
                throw new ObjectDisposedException("TaskScheduler");
            }

            _JobQueue.QueueWorkItem(workItem);
        }