public IDisposable Run()
            {
                this.c1 = new CombineLatestObserver <T1>(this.gate, this, 0);
                this.c2 = new CombineLatestObserver <T2>(this.gate, this, 1);
                this.c3 = new CombineLatestObserver <T3>(this.gate, this, 2);
                this.c4 = new CombineLatestObserver <T4>(this.gate, this, 3);
                this.c5 = new CombineLatestObserver <T5>(this.gate, this, 4);
                this.c6 = new CombineLatestObserver <T6>(this.gate, this, 5);
                this.c7 = new CombineLatestObserver <T7>(this.gate, this, 6);
                IDisposable disposable  = this.parent.source1.Subscribe(this.c1);
                IDisposable disposable2 = this.parent.source2.Subscribe(this.c2);
                IDisposable disposable3 = this.parent.source3.Subscribe(this.c3);
                IDisposable disposable4 = this.parent.source4.Subscribe(this.c4);
                IDisposable disposable5 = this.parent.source5.Subscribe(this.c5);
                IDisposable disposable6 = this.parent.source6.Subscribe(this.c6);
                IDisposable disposable7 = this.parent.source7.Subscribe(this.c7);

                return(StableCompositeDisposable.Create(new IDisposable[]
                {
                    disposable,
                    disposable2,
                    disposable3,
                    disposable4,
                    disposable5,
                    disposable6,
                    disposable7
                }));
            }
Example #2
0
            public IDisposable Run()
            {
                this.c1 = new CombineLatestObserver <T1>(this.gate, this, 0);
                this.c2 = new CombineLatestObserver <T2>(this.gate, this, 1);
                this.c3 = new CombineLatestObserver <T3>(this.gate, this, 2);
                IDisposable disposable  = this.parent.source1.Subscribe(this.c1);
                IDisposable disposable2 = this.parent.source2.Subscribe(this.c2);
                IDisposable disposable3 = this.parent.source3.Subscribe(this.c3);

                return(StableCompositeDisposable.Create(disposable, disposable2, disposable3));
            }