Example #1
0
        protected override IDisposable SubscribeCore(IObserver <Unit> observer, IDisposable cancel)
        {
            var fe = new FromEvent(this, observer);

            return(fe.Register() ?  fe : Disposable.Empty);
        }
Example #2
0
        protected override IDisposable SubscribeCore(UniRx.IObserver <T> observer, IDisposable cancel)
        {
            FromEvent fromEvent = new FromEvent(this, observer);

            return((!fromEvent.Register()) ? Disposable.Empty : fromEvent);
        }