Marshalling INotifyPropertyChanged.PropertyChanged event on UI thread & TaskCanceledException

Topics: Bugs, Feature Requests
Nov 21, 2013 at 11:40 AM
First off all, why do you marshall INotifyPropertyChanged.PropertyChanged event to UI thread? There is no needed to do it, at least for WPF (it is automatically marshalled to the UI dispatcher).

The second thing, now, for marshalling this event to UI thread in .Net 4.5 you use Dispatcher.InvokeAsync method and waiting returned task, but if application is shutdowning now this task could throw TaskCanceledException, so maybe it's ok catch this type of exception and swallow it, because now it can be cause of application crash during shutdowning, what do you think?

Thanks for you work!
Nov 21, 2013 at 12:38 PM
The issue with the exception on shutdown has already be fixed in latest CM 2.0.0-alpha
Nov 21, 2013 at 12:49 PM
Do you consider option do not marshall INotifyPropertyChanged.PropertyChanged event on UI thread?
Nov 21, 2013 at 12:53 PM
Check this issue.
There is a way to disable this behavior (I am afraid, even if not globally).
Nov 21, 2013 at 1:24 PM
ok, thanks!