예제 #1
0
 public bool UnregisterMessageSink(IMessageSink sink)
 {
     if (!Sinks.Contains(sink))
     {
         return(false);
     }
     Sinks.Remove(sink);
     return(true);
 }
예제 #2
0
 public bool RegisterMessageSink(IMessageSink sink)
 {
     if (Sinks.Contains(sink))
     {
         return(true);
     }
     Sinks.Add(new MessageSink(sink, Messages));
     FlushMessages();
     return(true);
 }