protected override void Schedule(Action action) { _actionScheduler.Schedule(action); }
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);