예제 #1
0
 internal CodeMarkerExStartEnd(int begin, int end, byte[] aBuff, bool correlated = false)
 {
     Debug.Assert(end != default(int));
     this._aBuff =
         correlated
         ? CodeMarkers.AttachCorrelationId(aBuff, Guid.NewGuid())
         : aBuff;
     this._end = end;
     CodeMarkers.Instance.CodeMarkerEx(begin, this._aBuff);
 }
예제 #2
0
 internal CodeMarkerStartEnd(int begin, int end, bool correlated = false)
 {
     Debug.Assert(end != default(int));
     this._buffer =
         correlated
         ? CodeMarkers.AttachCorrelationId(null, Guid.NewGuid())
         : null;
     this._end = end;
     this.CodeMarker(begin);
 }
예제 #3
0
 internal CodeMarkerExStartEnd(int begin, int end, string stringData, bool correlated = false)
     : this(begin, end, CodeMarkers.StringToBytesZeroTerminated(stringData), correlated)
 {
 }