//registers the observers public void subscribe(WondObserver obs) { lock (subLock) { obsList.AddFirst(obs); Console.WriteLine("added subscriber"); } }
//registers the observers public void subscribe(WondObserver obs) { lock (subLock) { obsList.AddFirst(obs); Console.WriteLine("added subscriber"); } }
//unregisters the observers public void unsubscribe(WondObserver obs) { obsList.Remove(obs); }
//unregisters the observers public void unsubscribe(WondObserver obs) { obsList.Remove(obs); }