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