Exemple #1
0
 public void Detach(IObserverPull o)
 {
     observers.Remove(o);
     Notify();
 }
Exemple #2
0
 internal override void RemoveObserver(IObserverPull observer)
 {
     observers.Remove(observer);
 }
Exemple #3
0
 public void Attach(IObserverPull o)
 {
     observers.Add(o);
     Notify();
 }
Exemple #4
0
 internal override void AddObserver(IObserverPull observer)
 {
     observers.Add(observer);
 }
Exemple #5
0
 internal abstract void RemoveObserver(IObserverPull observer);
Exemple #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);
        }