Exemple #1
0
 protected override void Schedule(Action action)
 {
     _actionScheduler.Schedule(action);
 }
Exemple #2
0
 public static void Schedule(this IActionScheduler actionScheduler, int cost, Action action, Func <int> actualCost = null, Func <Exception, int> exceptionCost = null)
 => actionScheduler.Schedule(cost, () => { action(); return(cost); }, actualCost == null ? default(Func <int, int>) : _ => actualCost(), exceptionCost);