Exemplo n.º 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;
     }
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }