public IDisposable Run()
            {
                this.c1 = new ZipLatestObserver <T1>(this.gate, this, 0);
                this.c2 = new ZipLatestObserver <T2>(this.gate, this, 1);
                this.c3 = new ZipLatestObserver <T3>(this.gate, this, 2);
                this.c4 = new ZipLatestObserver <T4>(this.gate, this, 3);
                this.c5 = new ZipLatestObserver <T5>(this.gate, this, 4);
                this.c6 = new ZipLatestObserver <T6>(this.gate, this, 5);
                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);

                return(StableCompositeDisposable.Create(new IDisposable[]
                {
                    disposable,
                    disposable2,
                    disposable3,
                    disposable4,
                    disposable5,
                    disposable6
                }));
            }
Exemplo n.º 2
0
            public IDisposable Run()
            {
                this.c1 = new ZipLatestObserver <T1>(this.gate, this, 0);
                this.c2 = new ZipLatestObserver <T2>(this.gate, this, 1);
                this.c3 = new ZipLatestObserver <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));
            }