Ejemplo n.º 1
0
 public FromEvent(FromEventObservable_ <T> parent, IObserver <T> observer)
 {
     this.parent   = parent;
     this.observer = observer;
     this.handler  = new Action <T>(this.OnNext);
 }
Ejemplo n.º 2
0
 public FromEvent(FromEventObservable_ <T> parent, IObserver <T> observer)
 {
     this.parent   = parent;
     this.observer = observer;
     this.handler  = OnNext;
 }
Ejemplo n.º 3
0
        protected override IDisposable SubscribeCore(IObserver <T> observer, IDisposable cancel)
        {
            FromEventObservable_ <T> .FromEvent fromEvent = new FromEventObservable_ <T> .FromEvent(this, observer);

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