Esempio n. 1
0
 public void AddTopicBroker( string topic, BrokerCircle bro )
 {
     BrokerCircleTopicList entry = FindTopic( topic );
     if ( entry != null ) {
         entry.AddBroker( bro );
         return;
     }
     entry = new BrokerCircleTopicList();
     entry.topic = topic;
     entry.AddBroker( bro );
     table.Add( entry );
 }
Esempio n. 2
0
        public void AddTopicBroker(string topic, BrokerCircle bro)
        {
            BrokerCircleTopicList entry = FindTopic(topic);

            if (entry != null)
            {
                entry.AddBroker(bro);
                return;
            }
            entry       = new BrokerCircleTopicList();
            entry.topic = topic;
            entry.AddBroker(bro);
            table.Add(entry);
        }