public void Detach(IObserverPull o) { observers.Remove(o); Notify(); }
internal override void RemoveObserver(IObserverPull observer) { observers.Remove(observer); }
public void Attach(IObserverPull o) { observers.Add(o); Notify(); }
internal override void AddObserver(IObserverPull observer) { observers.Add(observer); }
internal abstract void RemoveObserver(IObserverPull observer);
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); }