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