Exemplo n.º 1
0
        public static void Post(DispatcherObject dispatcher, Action action)
        {
            var dispatchAction = new DispatchAction {
                Dispatcher = dispatcher.Dispatcher,
                Action     = action
            };

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

            Post(dispatchAction);
        }