public void registerPublisher(Publisher p) { lock (_publishers) { _publishers.Add(p); Monitor.Pulse(_publishers); } log(string.Format("registered publisher {0}",p.getURI())); }
public void registerPublisher(Publisher p) { lock (_publishers) { _publishers.Add(p); Monitor.Pulse(_publishers); } Console.WriteLine("registered publisher {0}",p.getURI()); }