Esempio n. 1
0
 public SimpleSubscriberWithProbe(WhiteboxSubscriberProbe <int?> probe, Action <int?> onNext = null,
                                  Action <ISubscription> onSubscribe = null, Action <Exception> onError = null, Action onComplete = null)
 {
     _probe       = probe;
     _onNext      = onNext ?? (element => _probe.RegisterOnNext(element));
     _onSubscribe = onSubscribe ??
                    (subscription => _probe.RegisterOnSubscribe(NewSimpleSubscriberPuppet(subscription)));
     _onError    = onError ?? (cause => _probe.RegisterOnError(cause));
     _onComplete = onComplete ?? (() => _probe.RegisterOnComplete());
 }
Esempio n. 2
0
 public override void OnComplete()
 {
     base.OnComplete();
     _probe.RegisterOnComplete();
 }
 public void OnComplete()
 {
     _hole.OnComplete();
     _probe.RegisterOnComplete();
 }