예제 #1
0
            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);
            }
예제 #2
0
            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);
            }
예제 #3
0
 public MergeOuterObserver(MergeObservable <T> parent, IObserver <T> observer, IDisposable cancel)
     : base(observer, cancel)
 {
     this.parent = parent;
 }
예제 #4
0
 public Merge(MergeObservable <T> .MergeConcurrentObserver parent, IDisposable cancel) : base(parent.observer, cancel)
 {
     this.parent = parent;
     this.cancel = cancel;
 }