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