示例#1
0
 /// <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;
     }
 }
示例#2
0
 /// <summary>
 /// Remove the sink to the list of receiving sinks
 /// </summary>
 /// <param name="s"></param>
 public void RemoveSink(Sink s)
 {
     m_sinks.Remove(s);
 }
示例#3
0
 /// <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);
 }
示例#4
0
 /// <summary>
 /// Remove the sink to the list of receiving sinks
 /// </summary>
 /// <param name="s"></param>
 public void RemoveSink(Sink s)
 {
     m_sinks.Remove(s);
 }
示例#5
0
 /// <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);
 }