示例#1
0
        public void QueueWorkItemForNextStep(Action workItem)
        {
            if (_IsDisposed)
            {
                QueuedWhileDisposed();
                return;
            }

            _JobQueue.QueueWorkItemForNextStep(workItem);
        }
        public void QueueWorkItemForNextStep(Action workItem)
        {
            if (_IsDisposed)
            {
                throw new ObjectDisposedException("TaskScheduler");
            }

            _JobQueue.QueueWorkItemForNextStep(workItem);
        }