コード例 #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));
     }
 }
コード例 #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);
        }
コード例 #3
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;
        }
コード例 #4
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);
     }
 }