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