Пример #1
0
        public CuriousClass(IMessageService service, IObserved observed)
        {
            _service  = service;
            _observed = observed;

            WeakEventManager <IObserved, AncientEventArgs> .AddHandler(observed, nameof(IObserved.AncientOne), this.ThereIsAnAncientOne);
        }
Пример #2
0
 public void DelObserved(IObserved ob)
 {
     ObservedList.Remove(ob);
 }
Пример #3
0
 public void setObservable(IObserved observable)
 {
     stream = observable;
 }
Пример #4
0
 public void AddObserved(IObserved ob)
 {
     ObservedList.Add(ob);
 }