title: Best way to execute asynchronous task on main thread
body: <p>I would like to know what is the best asynchronous way to execute a task on the main thread of a .NET application (in a ViewModel to be precise). Is  Dispatcher.BeginInvoke still valid nowadays or does it exist a better way to do that ?</p>