public void RegisterEventSink(IEnterLeaveListenerEventSink sink) { var query = from item in EventSinks where item == sink select item; if (!query.Any()) { EventSinks.Add(sink); } }
public void AdviseDispose(IDisposableEventSink sink) { ThreadSafe(() => EventSinks.Add(sink)); }