/// <summary> /// Add/replace a publisher to the manager /// </summary> /// <param name="myPub"></param> public void Add(IPublisher myPub) { if(m_PublisherMap.ContainsKey(myPub.TopicID())) { m_PublisherMap[myPub.TopicID()] = myPub; } else { m_PublisherMap.Add(myPub.TopicID(), myPub); } }
/// <summary> /// remove a publisher /// </summary> /// <param name="myPub"></param> public void Remove(IPublisher myPub) { m_PublisherMap.Remove(myPub.TopicID()); }