Пример #1
0
 public FromEvent(FromEventObservable <TDelegate> parent, IObserver <Unit> observer)
 {
     this.parent   = parent;
     this.observer = observer;
 }
Пример #2
0
 public FromEvent(FromEventObservable <TDelegate, TEventArgs> parent, IObserver <TEventArgs> observer)
 {
     this.parent   = parent;
     this.observer = observer;
 }
        protected override IDisposable SubscribeCore(IObserver <Unit> observer, IDisposable cancel)
        {
            FromEventObservable <TDelegate> .FromEvent fromEvent = new FromEventObservable <TDelegate> .FromEvent(this, observer);

            return((!fromEvent.Register()) ? Disposable.Empty : fromEvent);
        }
Пример #4
0
 public FromEvent(FromEventObservable parent, IObserver <Unit> observer)
 {
     this.parent   = parent;
     this.observer = observer;
     this.handler  = new Action(this.OnNext);
 }