阅读背景:

TaskScheduler.FromCurrentSynchronizationContext - 如何在单元测试时使用WPF调度程序线程

来源:互联网 

I've got code in a ViewModel that calls a service through a task. When the task finishes, it'll populate an ObservableCollection. The problem is that it's waiting on the task to finish by using the ContinueWith method and providing TaskScheduler.FromCurrentSynchronizationContext as task scheduler, so that the OC gets updated on the UI thread.I've got code in a ViewModel that calls a servi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: