Ejemplo n.º 1
0
 public KeyObserver(IKeyObservable <Key, T> source, Key key, Action <T> onNext)
 {
     this.source       = source;
     this.onNext       = onNext;
     this.subscription = this.source.Subscribe(key, this);
 }
Ejemplo n.º 2
0
 public SimpleKeyObserver(IKeyObservable <T, Key> source, Key key, Action <T> onNext)
 {
     this.source       = source;
     this.onNext       = onNext;
     this.subscription = this.source.Subscribe(this, key);
 }