示例#1
0
 public static IObservable <long> PeriodicTimer(DateTimeOffset dueTime, TimeSpan period)
 {
     return(ObservableTimers.PeriodicTimer(dueTime, period, (IScheduler)Scheduler.Default));
 }
示例#2
0
 public static IObservable <long> PeriodicTimer(TimeSpan dueTime, TimeSpan period, IScheduler scheduler)
 {
     Invariant.ArgumentNotNull((object)scheduler, "scheduler");
     return(Observable.Defer <long>((Func <IObservable <long> >)(() => ObservableTimers.PeriodicTimer(scheduler.Now + dueTime, period, scheduler))));
 }