예제 #1
0
 public static IEnumerable <T> ToEnumerable <T>(this IObservableX <T> source)
 {
     return(source.ToObservable().ToEnumerable());
 }
예제 #2
0
 public static IObservableX <T> Timeout <T>(this IObservableX <T> source, TimeSpan timeout, IObservableX <T> other)
 {
     return(source.Map(_ => _.Timeout(timeout, other.ToObservable())));
 }
예제 #3
0
 public static IObservableX <TResult> Map <T, TResult>(this IObservableX <T> source, Func <IObservable <T>, IObservable <TResult> > selector)
 {
     return(selector(source.ToObservable()).ToObservableX());
 }
예제 #4
0
 public static T FirstOrTimeout <T>(this IObservableX <T> source, TimeSpan timeout)
 {
     return(source.ToObservable().Timeout(timeout).First());
 }
예제 #5
0
 public static T FirstOrDefault <T>(this IObservableX <T> source)
 {
     return(source.ToObservable().FirstOrDefault());
 }
예제 #6
0
 public static IDisposable Subscribe <T>(this IObservableX <T> source, Action <T> onNext, Action <Exception> onError, Action onCompleted)
 {
     return(source.ToObservable().Subscribe(onNext, onError, onCompleted));
 }
예제 #7
0
 public static IDisposable Subscribe <T>(this IObservableX <T> source, Action <T> onNext)
 {
     return(source.ToObservable().Subscribe(onNext));
 }
예제 #8
0
 public static IObservableX <T> Catch <T>(this IObservableX <T> source, IObservableX <T> second)
 {
     return(source.Map(_ => _.Catch(second.ToObservable())));
 }