public void Detach(IMonitoringObserver observer) { observer.SetSubject(null); _observers.Remove(observer); }
public DemoObserverPattern(ITransmitReceiver output, IEnumerable <Radio> radios, IMonitoringObserver monitor) { _output = output; _radios = radios; _monitor = monitor; }
public void Attach(IMonitoringObserver observer) { observer.SetSubject(this); _observers.Add(observer); }