public override void OnNext(IObservable <T> value) { SingleAssignmentDisposable singleAssignmentDisposable = new SingleAssignmentDisposable(); this.collectionDisposable.Add(singleAssignmentDisposable); MergeObservable <T> .MergeOuterObserver.Merge observer = new MergeObservable <T> .MergeOuterObserver.Merge(this, singleAssignmentDisposable); singleAssignmentDisposable.Disposable = value.Subscribe(observer); }
private void Subscribe(IObservable <T> innerSource) { SingleAssignmentDisposable singleAssignmentDisposable = new SingleAssignmentDisposable(); this.collectionDisposable.Add(singleAssignmentDisposable); MergeObservable <T> .MergeConcurrentObserver.Merge observer = new MergeObservable <T> .MergeConcurrentObserver.Merge(this, singleAssignmentDisposable); singleAssignmentDisposable.Disposable = innerSource.Subscribe(observer); }
public MergeOuterObserver(MergeObservable <T> parent, IObserver <T> observer, IDisposable cancel) : base(observer, cancel) { this.parent = parent; }
public Merge(MergeObservable <T> .MergeConcurrentObserver parent, IDisposable cancel) : base(parent.observer, cancel) { this.parent = parent; this.cancel = cancel; }