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