/// <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)); } }
/// <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); } }