Пример #1
0
 public void Detach(IObserverPull o)
 {
     observers.Remove(o);
     Notify();
 }
Пример #2
0
 internal override void RemoveObserver(IObserverPull observer)
 {
     observers.Remove(observer);
 }
Пример #3
0
 public void Attach(IObserverPull o)
 {
     observers.Add(o);
     Notify();
 }
Пример #4
0
 internal override void AddObserver(IObserverPull observer)
 {
     observers.Add(observer);
 }
Пример #5
0
 internal abstract void RemoveObserver(IObserverPull observer);
Пример #6
0
 internal abstract void AddObserver(IObserverPull observer);
 //To Detach a subscriber which is using the pull way of receiving data from this subject.
 public void Detach(IObserverPull o)
 {
     //Remove the subscriber to the list of the the subcribers that are using the pull way.
     ObserversPull.Remove(o);
 }
        //Methods

        //To attach a subscriber which is using the pull way of receiving data to this subject.
        public void Attach(IObserverPull o)
        {
            //Add the subscriber to the list of the the subcribers that are using the pull way.
            ObserversPull.Add(o);
        }