/// <summary> /// Reads the common log item fields from the specified log file reader. /// </summary> /// <param name="reader">The log file reader to read from.</param> protected void ReadBaseData(FieldLogFileReader reader) { LogItemSourceFileName = reader.FileName; FileFormatVersion = reader.FormatVersion; Time = new DateTime(reader.ReadInt64(), DateTimeKind.Utc); EventCounter = reader.ReadInt32(); Priority = (FieldLogPriority)reader.ReadByte(); SessionId = new Guid(reader.ReadBytes(16)); ThreadId = reader.ReadInt32(); if (reader.FormatVersion >= 2) { WebRequestId = reader.ReadUInt32(); } }