Example #1
0
        public void RegisterEventSink(IEnterLeaveListenerEventSink sink)
        {
            var query = from item in EventSinks
                        where item == sink
                        select item;

            if (!query.Any())
            {
                EventSinks.Add(sink);
            }
        }
Example #2
0
 public void AdviseDispose(IDisposableEventSink sink)
 {
     ThreadSafe(() => EventSinks.Add(sink));
 }