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