Exemplo n.º 1
0
 public void registerBroker(Broker b)
 {
     lock (_brokers)
     {
         _brokers.Add(b);
         Monitor.Pulse(_brokers);
     }
     log(string.Format("registered broker {0}",b.getURI()));
 }
Exemplo n.º 2
0
 public void registerBroker(Broker b)
 {
     lock (_brokers)
     {
         _brokers.Add(b);
         Monitor.Pulse(_brokers);
     }
     Console.WriteLine("registered broker {0}",b.getURI());
 }