Ejemplo n.º 1
0
 public IDisposable Schedule <TState>(TState state, Func <IScheduler, TState, IDisposable> action)
 {
     ScheduledItems.Add(new Tuple <Action, TimeSpan?>(null, null));
     return(InnerScheduler.Schedule(state, action));
 }
Ejemplo n.º 2
0
 public IDisposable Schedule(Action action)
 {
     ScheduledItems.Add(new Tuple <Action, TimeSpan?>(action, null));
     return(InnerScheduler.Schedule(action));
 }
Ejemplo n.º 3
0
 public IDisposable Schedule <TState>(TState state, DateTimeOffset dueTime, Func <IScheduler, TState, IDisposable> action)
 {
     return(InnerScheduler.Schedule(state, dueTime, action));
 }
Ejemplo n.º 4
0
 public IDisposable Schedule <TState>(TState state, TimeSpan dueTime, Func <IScheduler, TState, IDisposable> action)
 {
     ScheduledItems.Add(new Tuple <Action, TimeSpan?>(() => action(this, state), dueTime));
     return(InnerScheduler.Schedule(state, dueTime, action));
 }