public void registerSubscriber(Subscriber s) { lock (_subscribers) { _subscribers.Add(s); Monitor.Pulse(_subscribers); } log(string.Format("registered subscriber {0}", s.getURI())); }
public void registerSubscriber(Subscriber s) { lock (_subscribers) { _subscribers.Add(s); Monitor.Pulse(_subscribers); } Console.WriteLine("registered subscriber {0}",s.getURI()); }