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