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); }
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); }
// Specialization for string internal CodeMarkerExStartEnd(int begin, int end, string stringData, bool correlated = false) : this(begin, end, CodeMarkers.StringToBytesZeroTerminated(stringData), correlated) { }