Example #1
0
 public void removeReceiver(IBridgeReceiver receiver)
 {
     if (map_.ContainsKey(receiver.handle))
     {
         map_[receiver.handle].Remove(receiver);
     }
 }
Example #2
0
 public void addReceiver(IBridgeReceiver receiver)
 {
     if (!map_.ContainsKey(receiver.handle))
     {
         map_[receiver.handle] = new HashSet <IBridgeReceiver>();
     }
     map_[receiver.handle].Add(receiver);
 }