public TraceCorrelationScope Open(bool traceTransfer = true)
 {
     var scope = new TraceCorrelationScope(activity, _Source, traceTransfer);
     if(_First)
     {
         _First = false;
         _Source.TraceEvent(TraceEventType.Start, 0, _ActivityName);
     }
     return scope;
 }
        public TraceCorrelationScope Open(bool traceTransfer = true)
        {
            var scope = new TraceCorrelationScope(activity, _Source, traceTransfer);

            if (_First)
            {
                _First = false;
                _Source.TraceEvent(TraceEventType.Start, 0, _ActivityName);
            }
            return(scope);
        }
Example #3
0
        public TraceCorrelationScope Open(bool traceTransfer = true)
        {
            var scope = new TraceCorrelationScope(this.activity, this._Source, traceTransfer);

            if (this._First)
            {
                this._First = false;
                // NETSTDCONV
                // _Source.TraceEvent(TraceEventType.Start, 0, _ActivityName);
                this._Source.TraceEvent(TraceEventType.Critical, 0, this._ActivityName);
            }
            return(scope);
        }