See intro blogpost here.
In Silverlight and WPF you will often use the Dispatcher to return from a background thread to jump to the UI Thread. This is required when you need to update your UI, because you’re not allowed to touch the UI from anything but the UI Thread. The Dispatcher method has changed slightly in WinRT. It’s also now of type “CoreDispatcher”, instead of just “Dispatcher”.
#if !NETFX_CORE
Dispatcher.BeginInvoke(
#else
Dispatcher.Invoke(CoreDispatcherPriority.Normal,
#endif
(s, a) => { ... }
#if NETFX_CORE
, this, null);
#endif
);