The naming is very misleading, Max- or even DesiredDegreeOfParallelism would describe much more closely what it is about. We do not do any active thread management at all and therefore cannot limit the number of threads created and used, neither per call nor globally. Instead, as you noted, it does only control the desired or maximum number of parallel execution, per call.
What we could do is expose a TPL TaskScheduler in Control (.Net 4 builds and higher) which would default to ThreadPoolTaskScheduler (status quo) but could be replaced with your own if needed. What do you think?
Thanks,
Christoph
Edit: ah, you came to a similar conclusion regarding TaskScheduler :)
What we could do is expose a TPL TaskScheduler in Control (.Net 4 builds and higher) which would default to ThreadPoolTaskScheduler (status quo) but could be replaced with your own if needed. What do you think?
Thanks,
Christoph
Edit: ah, you came to a similar conclusion regarding TaskScheduler :)