Beispiel #1
0
 /// <summary>
 /// Makes sure 'action' is executed on the thread that owns the object. Otherwise, things will go boom.
 /// </summary>
 ///<param name="action">The action which should be executed</param>
 private static void DoDispatchedAction(Action action)
 {
     DispatcherHelper.CheckInvokeOnUI(action);
 }
Beispiel #2
0
 private T InvokeOnCurrentDispatcher <T>(Func <T> action)
 {
     return(DispatcherHelper.CheckInvokeOnUI(action));
 }