/// <summary> /// Delays the observable sequence by <paramref name="dueTime"/>. /// /// OnError notifications ARE NOT DELAYED! /// </summary> public static IObservableX <T> Delay <T>(this IObservableX <T> source, TimeSpan dueTime) { return(source.Map(_ => _.Delay(dueTime))); }
public static IObservableX <T> Repeat <T>(this IObservableX <T> source, int repeatCount) { return(source.Map(_ => _.Repeat(repeatCount))); }
public static IObservableX <IList <T> > ToList <T>(this IObservableX <T> source) { return(source.Map(_ => _.ToList())); }
public static IObservableX <T> SubscribeOnThreadPool <T>(this IObservableX <T> source) { return(source.Map(_ => _.SubscribeOn(Scheduler.ThreadPool))); }
public static IObservableX <T> Timeout <T>(this IObservableX <T> source, TimeSpan timeout) { return(source.Map(_ => _.Timeout(timeout))); }
public static IObservableX <T> Timeout <T>(this IObservableX <T> source, TimeSpan timeout, IObservableX <T> other) { return(source.Map(_ => _.Timeout(timeout, other.ToObservable()))); }
public static IObservableX <T> Take <T>(this IObservableX <T> source, int count) { return(source.Map(_ => _.Take(count))); }
public static IObservableX <T> Catch <T, TException>(this IObservableX <T> source, Func <TException, IObservableX <T> > handler) where TException : Exception { return(source.Map(_ => _.Catch((TException exception) => handler(exception).ToObservable()))); }
public static IObservableX <TResult> SelectMany <TSource, TCollection, TResult>(this IObservableX <TSource> source, Func <TSource, IObservableX <TCollection> > collectionSelector, Func <TSource, TCollection, TResult> resultSelector) { Func <TSource, IObservable <TCollection> > observableCollectionSelector = t => collectionSelector(t).ToObservable(); return(source.Map(_ => _.SelectMany(observableCollectionSelector, resultSelector))); }
public static IObservableX <T> TakeWhile <T>(this IObservableX <T> source, Func <T, bool> predicate) { return(source.Map(_ => _.TakeWhile(predicate))); }
public static IObservableX <TResult> SelectMany <T, TResult>(this IObservableX <T> source, Func <T, IObservableX <TResult> > selector) { Func <T, IObservable <TResult> > observableSelector = t => selector(t).ToObservable(); return(source.Map(_ => _.SelectMany(observableSelector))); }
public static IObservableX <TResult> SelectMany <T, TResult>(this IObservableX <T> source, Func <T, IEnumerable <TResult> > selector) { return(source.Map(_ => _.SelectMany(selector))); }
public static IObservableX <TResult> Select <T, TResult>(this IObservableX <T> source, Func <T, TResult> selector) { return(source.Map(_ => _.Select(selector))); }
public static IObservableX <T> Retry <T>(this IObservableX <T> source) { return(source.Map(_ => _.Retry())); }
public static IObservableX <T> Do <T>(this IObservableX <T> source, Action <T> action) { return(source.Map(_ => _.Do(action))); }
public static IObservableX <T> Retry <T>(this IObservableX <T> source, int retryCount) { return(source.Map(_ => _.Retry(retryCount))); }
public static IObservableX <T> Catch <T>(this IObservableX <T> source, IObservableX <T> second) { return(source.Map(_ => _.Catch(second.ToObservable()))); }