We are using .NET 3.5 and has started using Reactive Extensions. We are using system.Reactive (Runtime Version:v2.0.50727) which is compatible for .NET 3.5.
I'm trying to observe an event on the dispatcher scheduler since I'm using WPF controls(it's winforms shell, with WPF host control embedded), however I could not spot that option on Scheduler class(system.reactive.concurrency.scheduler). Looks like its available from .NET 4.0 onwards. My question is, how do I get this working in .NET 3.5? Note that the call is happening inside my ViewModel and not View.
Code:
this.ObservePropertyChanged(x => x.Queue)
//I cant find scheduler dispatcher option,
//there are other options such as current, imeediete, new etc.
.ObserveOn(Scheduler.Dispatcher)
.Subscribe(RefreshQueues);
Thanks,
-Mike