Ejemplo n.º 1
0
 public ObserveOn_(ObserveOnObservable <T> parent, ISchedulerQueueing scheduler, IObserver <T> observer, IDisposable cancel) : base(observer, cancel)
 {
     this.parent     = parent;
     this.scheduler  = scheduler;
     this.isDisposed = new BooleanDisposable();
     this.onNext     = new Action <T>(OnNext_); // cache delegate
 }
Ejemplo n.º 2
0
 public ObserveOn_(ObserveOnObservable <T> parent, ISchedulerQueueing scheduler, IObserver <T> observer, IDisposable cancel)
     : base(observer, cancel)
 {
     this.parent    = parent;
     this.scheduler = scheduler;
     isDisposed     = new BooleanDisposable();
     onNext         = OnNext_;
 }
Ejemplo n.º 3
0
        protected override IDisposable SubscribeCore(IObserver <T> observer, IDisposable cancel)
        {
            ISchedulerQueueing schedulerQueueing = this.scheduler as ISchedulerQueueing;

            if (schedulerQueueing == null)
            {
                return(new ObserveOnObservable <T> .ObserveOn(this, observer, cancel).Run());
            }
            return(new ObserveOnObservable <T> .ObserveOn_(this, schedulerQueueing, observer, cancel).Run());
        }
Ejemplo n.º 4
0
        protected override IDisposable SubscribeCore(IObserver <T> observer, IDisposable cancel)
        {
            ISchedulerQueueing queueing = scheduler as ISchedulerQueueing;

            if (queueing == null)
            {
                return(new ObserveOn(this, observer, cancel).Run());
            }
            else
            {
                return(new ObserveOn_(this, queueing, observer, cancel).Run());
            }
        }