public static ObservableResults <T> Check <T>(this IObservable <T> o) { var results = new ObservableResults <T>(); o.Check(results); return(results); }
public static IObservable <T> Check <T>(this IObservable <T> o, ObservableResults <T> results) { o.Subscribe( v => { results.Results.Add(v); }, e => { results.Error = e; }, () => { results.Completed = true; }); return(o); }