Unfortunately, this isn't a supported operation. PLINQ was not designed in a manner that allows for third party extensions, without reverting to an IEnumerable<T>
.
The degree of parallelism is stored within the ParallelQuery class in a private member variable (private QuerySettings m_specifiedSettings
, in the int? m_degreeOfParallism
field).
You could, potentially, use reflection to extract that, but it's an internal implementation detail that's subject to change.