public static IObservable <TSource> Concat <TSource>(this IObservable <TSource> first, params IObservable <TSource>[] seconds)
        {
            if (first == null)
            {
                throw new ArgumentNullException("first");
            }
            if (seconds == null)
            {
                throw new ArgumentNullException("seconds");
            }

            ConcatObservable <TSource> concat = first as ConcatObservable <TSource>;

            if (concat != null)
            {
                return(concat.Combine(seconds));
            }

            return(Concat(CombineSources(first, seconds)));
        }
Esempio n. 2
0
 public Concat(ConcatObservable <T> parent, IObserver <T> observer, IDisposable cancel)
     : base(observer, cancel)
 {
     this.parent = parent;
 }