public static void Post(DispatcherObject dispatcher, Action action) { var dispatchAction = new DispatchAction { Dispatcher = dispatcher.Dispatcher, Action = action }; Post(dispatchAction); }
public static void Post(DispatchAction action) { MaybeDelayAction(action, () => { if (!action.CancellationToken.IsCancellationRequested) { Delegate d = action.Action; action.Dispatcher.BeginInvoke(DispatcherPriority.Normal, d); } }); }
public static void Post(DispatcherObject dispatcher, DispatcherPriority priority, Action action) { var dispatchAction = new DispatchAction { Dispatcher = dispatcher.Dispatcher, Action = action, Priority = priority, }; Post(dispatchAction); }