示例#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));
 }
示例#2
0
 public IDisposable Schedule(Action action)
 {
     ScheduledItems.Add(new Tuple <Action, TimeSpan?>(action, null));
     return(InnerScheduler.Schedule(action));
 }
示例#3
0
 public IDisposable Schedule <TState>(TState state, DateTimeOffset dueTime, Func <IScheduler, TState, IDisposable> action)
 {
     return(InnerScheduler.Schedule(state, dueTime, action));
 }
示例#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));
 }