public static IObservable <long> PeriodicTimer(DateTimeOffset dueTime, TimeSpan period) { return(ObservableTimers.PeriodicTimer(dueTime, period, (IScheduler)Scheduler.Default)); }
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)))); }