public override void Load(Stream stream) { TestForEditable(); byte version = stream.ReadNextByte(); switch (version) { case 1: m_rolloverInterval = stream.ReadInt32(); m_rolloverSizeMb = stream.ReadInt32(); m_maximumAllowedMb = stream.ReadInt32(); m_finalSettings.Load(stream); m_encodingMethod = new EncodingDefinition(stream); break; default: throw new VersionNotFoundException("Unknown Version Code: " + version); } }
public override void Load(Stream stream) { TestForEditable(); byte version = stream.ReadNextByte(); switch (version) { case 1: m_executeTimer = stream.ReadInt32(); m_logPath = stream.ReadString(); m_combineOnFileCount = stream.ReadInt32(); m_combineOnFileSize = stream.ReadInt64(); m_matchFlag = stream.ReadGuid(); m_archiveSettings.Load(stream); break; default: throw new VersionNotFoundException("Unknown Version Code: " + version); } }