Beispiel #1
0
 /// <summary>
 /// Add a tracer item sink to tracer.
 /// </summary>
 /// <param name="sink"></param>
 /// <returns></returns>
 public bool Add(ITracerItemSink sink)
 {
     lock (this)
     {
         return(_itemSinks.Add(sink));
     }
 }
Beispiel #2
0
        /// <summary>
        /// Remove tracer item sink from tracer.
        /// </summary>
        /// <param name="sink"></param>
        /// <returns></returns>
        public bool Remove(ITracerItemSink sink)
        {
            bool result;

            lock (this)
            {
                result = _itemSinks.Remove(sink);
            }

            if (result)
            {
                sink.Dispose();
            }

            return(result);
        }
        /// <summary>
        /// Remove tracer item sink from tracer.
        /// </summary>
        /// <param name="sink"></param>
        /// <returns></returns>
        public bool Remove(ITracerItemSink sink)
        {
            bool result;
            lock (this)
            {
                result = _itemSinks.Remove(sink);
            }

            if (result)
            {
                sink.Dispose();
            }

            return result;
        }
 /// <summary>
 /// Add a tracer item sink to tracer.
 /// </summary>
 /// <param name="sink"></param>
 /// <returns></returns>
 public bool Add(ITracerItemSink sink)
 {
     lock (this)
     {
         return _itemSinks.Add(sink);
     }
 }