/// <summary> /// Assocated a sink with a given type of message /// </summary> /// <param name="c">the category of message</param> /// <param name="s">the sink for this category of message</param> public void SetSink(UserMessage.Category c, Sink s) { lock (m_lock_object) { m_sinks[c] = s; } }
/// <summary> /// Remove the sink to the list of receiving sinks /// </summary> /// <param name="s"></param> public void RemoveSink(Sink s) { m_sinks.Remove(s); }
/// <summary> /// Add the sink to the list of receiving sinks /// </summary> /// <param name="s">the sink to add</param> public void AddSink(Sink s) { m_sinks.Add(s); }