Example #1
0
 public RetryIfCompletableSubscriber(ICompletableSubscriber actual,
                                     ICompletable source, Func <Exception, bool> retryIf)
 {
     this.actual  = actual;
     this.source  = source;
     this.retryIf = retryIf;
 }
Example #2
0
 public RetryFiniteCompletableSubscriber(ICompletableSubscriber actual,
                                         ICompletable source, long times)
 {
     this.actual    = actual;
     this.source    = source;
     this.remaining = times;
 }
Example #3
0
        public void Subscribe(ICompletableSubscriber s)
        {
            CompletableInnerDisposable cid = new CompletableInnerDisposable(s, this);

            s.OnSubscribe(cid);

            if (Add(cid))
            {
                if (cid.IsDisposed())
                {
                    Remove(cid);
                }
            }
            else
            {
                Exception e = error;
                if (e != null)
                {
                    s.OnError(e);
                }
                else
                {
                    s.OnComplete();
                }
            }
        }
Example #4
0
 public DelayCompletableSubscriber(ICompletableSubscriber actual,
                                   IScheduler scheduler, TimeSpan delay, bool delayError)
 {
     this.actual     = actual;
     this.scheduler  = scheduler;
     this.delay      = delay;
     this.delayError = delayError;
 }
Example #5
0
        public void Subscribe(ICompletableSubscriber s)
        {
            var oo = new OtherSubscriber(s, source);

            s.OnSubscribe(oo);

            other.Subscribe(oo);
        }
Example #6
0
 public TimeoutCompletableSubscriber(ICompletableSubscriber actual,
                                     IScheduler scheduler, TimeSpan timeout, ICompletable other)
 {
     this.actual    = actual;
     this.scheduler = scheduler;
     this.timeout   = timeout;
     this.other     = other;
 }
Example #7
0
        public void Subscribe(ICompletableSubscriber s)
        {
            var oo = new OtherObserver(s, source);

            s.OnSubscribe(oo);

            oo.SetResource(other.Subscribe(oo));
        }
 public void Subscribe(ICompletableSubscriber s)
 {
     try
     {
         onSubscribe(s);
     }
     catch (Exception e)
     {
         RxAdvancedFlowPlugins.OnError(e);
     }
 }
 public LambdaCompletableSubscriber(
     ICompletableSubscriber actual,
     Action <IDisposable> onSubscribeCall,
     Action onCompleteCall,
     Action <Exception> onErrorCall,
     Action onAfterTerminate
     )
 {
     this.actual           = actual;
     this.onSubscribeCall  = onSubscribeCall;
     this.onCompleteCall   = onCompleteCall;
     this.onErrorCall      = onErrorCall;
     this.onAfterTerminate = onAfterTerminate;
 }
Example #10
0
 public static void Error(ICompletableSubscriber cs, Exception e)
 {
     cs.OnSubscribe(Instance);
     cs.OnError(e);
 }
Example #11
0
 public MergeCompletableSubscriber(ICompletableSubscriber actual)
 {
     this.actual = actual;
     this.all    = new SetCompositeDisposable();
 }
Example #12
0
 public OnErrorCompleteCompletableSubscriber(ICompletableSubscriber actual,
                                             Func <Exception, bool> predicate)
 {
     this.actual    = actual;
     this.predicate = predicate;
 }
Example #13
0
 public CompletableInnerDisposable(ICompletableSubscriber actual, CompletableProcessor parent)
 {
     this.actual = actual;
     this.parent = parent;
 }
 public UsingCompletableSubscriber(ICompletableSubscriber actual, bool eager, Action disposeState)
 {
     this.actual = actual;
     this.eager = eager;
     this.disposeState = disposeState;
 }
Example #15
0
 public SingleSubscriberToCompletableSubscriber(ICompletableSubscriber cs)
 {
     this.cs = cs;
 }
Example #16
0
 public CompletableSubscriberToObserver(ICompletableSubscriber s)
 {
     cs = s;
 }
 public RetryInfiniteCompletableSubscriber(ICompletableSubscriber actual, ICompletable source)
 {
     this.actual = actual;
     this.source = source;
 }
 public ConcatCompletableSubscriber(ICompletableSubscriber actual, IEnumerator <ICompletable> it)
 {
     this.actual = actual;
     this.it     = it;
 }
Example #19
0
 internal OtherObserver(ICompletableSubscriber actual, ICompletable source)
 {
     this.actual = actual;
     this.source = source;
 }
Example #20
0
 public OtherCompletableSubscriber(TimeoutCompletableSubscriber parent, ICompletableSubscriber actual)
 {
     this.parent = parent;
     this.actual = actual;
 }
Example #21
0
        public void Subscribe(ICompletableSubscriber s)
        {
            ICompletableSubscriber parent = onLift(s);

            source.Subscribe(parent);
        }
Example #22
0
 public ObserveOnCompletableSubscriber(ICompletableSubscriber actual,
                                       IScheduler scheduler)
 {
     this.actual    = actual;
     this.scheduler = scheduler;
 }
Example #23
0
 public SubscribeOnCompletableSubscriber(ICompletableSubscriber actual, MultipleAssignmentDisposable mad)
 {
     this.actual = actual;
     this.mad    = mad;
 }
Example #24
0
 public static void Complete(ICompletableSubscriber cs)
 {
     cs.OnSubscribe(Instance);
     cs.OnComplete();
 }
Example #25
0
 public ResumeCompletableSubscriber(ICompletableSubscriber actual, Func <Exception, ICompletable> nextProvider)
 {
     this.actual       = actual;
     this.nextProvider = nextProvider;
 }