Пример #1
0
            public IDisposable Run(SkipUntil <TSource, TOther> parent)
            {
                Disposable.TrySetSingle(ref _otherDisposable, parent._other.Subscribe(new OtherObserver(this)));

                Disposable.TrySetSingle(ref _mainDisposable, parent._source.Subscribe(this));

                return(this);
            }
Пример #2
0
            public IDisposable Run(SkipUntil <TSource, TOther> parent)
            {
                var sourceObserver = new SourceObserver(this);
                var otherObserver  = new OtherObserver(this, sourceObserver);

                var otherSubscription  = parent._other.SubscribeSafe(otherObserver);
                var sourceSubscription = parent._source.SubscribeSafe(sourceObserver);

                sourceObserver.Disposable = sourceSubscription;
                otherObserver.Disposable  = otherSubscription;

                return(StableCompositeDisposable.Create(
                           sourceSubscription,
                           otherSubscription
                           ));
            }
Пример #3
0
 public void Run(SkipUntil <TSource, TOther> parent)
 {
     Disposable.TrySetSingle(ref _otherDisposable, parent._other.Subscribe(new OtherObserver(this)));
     Run(parent._source);
 }
Пример #4
0
 public void Run(SkipUntil <TSource, TOther> parent)
 {
     _otherDisposable.Disposable = parent._other.Subscribe(new OtherObserver(this));
     Run(parent._source);
 }
Пример #5
0
 public _(SkipUntil <TSource, TOther> parent, IObserver <TSource> observer, IDisposable cancel)
     : base(observer, cancel)
 {
     _parent = parent;
 }