Multi-Threading Cross-Class Cancellation with TPL
问题 All, I have a long running process that I run on a background thread (with cancellation support) using the Task Paralell Library (TPL). The code for this long running taks is contained within Class Validation , and when the method public bool AsyncRunValidationProcess(TaskScheduler _uiScheduler, CancellationToken _token, dynamic _dynamic = null) { try { // Note: _uiScheduler is used to update the UI thread with progress infor etc. for (int i = 0; i < someLargeLoopNumber; i++) { //