예제 #1
0
 /// <inheritdoc/>
 public void InvokeAsync(Action action, DispatcherPriority priority = DispatcherPriority.Normal)
 {
     _jobRunner?.Post(action, priority);
 }
예제 #2
0
 /// <inheritdoc/>
 public void Post(Action action, DispatcherPriority priority = default)
 {
     _ = action ?? throw new ArgumentNullException(nameof(action));
     _jobRunner.Post(action, priority);
 }
예제 #3
0
 /// <inheritdoc/>
 public void Post(Action action, DispatcherPriority priority = DispatcherPriority.Normal)
 {
     Contract.Requires <ArgumentNullException>(action != null);
     _jobRunner.Post(action, priority);
 }
예제 #4
0
 public IDisposable StartTimer(TimeSpan interval, Action tick)
 => AvaloniaLocator.Current.GetService <IPclPlatformWrapper>().StartSystemTimer(interval,
                                                                                () => _timerJobRunner.Post(tick, DispatcherPriority.Normal));