Esempio n. 1
0
 /// <inheritdoc/>
 public Task InvokeAsync(Action action, DispatcherPriority priority = DispatcherPriority.Normal)
 {
     Contract.Requires <ArgumentNullException>(action != null);
     return(_jobRunner.InvokeAsync(action, priority));
 }
Esempio n. 2
0
 /// <inheritdoc/>
 public Task InvokeTaskAsync(Action action, DispatcherPriority priority = DispatcherPriority.Normal)
 {
     return(_jobRunner?.InvokeAsync(action, priority));
 }
 /// <inheritdoc/>
 public Task InvokeAsync(Action action, DispatcherPriority priority = default)
 {
     _ = action ?? throw new ArgumentNullException(nameof(action));
     return(_jobRunner.InvokeAsync(action, priority));
 }