private static void ValidateRecordLength(LogRecord record, long bufferSize) { if (record.Length <= 0 || record.Length > bufferSize) { throw new Exception("Invalid record length"); } }
private static FileSystemEvent CreateFileSystemEvent(LogRecord record, string[] strings) { var fileSystemEvent = new FileSystemEvent() { Filename = PathConverter.ReplaceDevicePath(strings[0]), ProcessId = record.Data.ProcessId, Type = record.Data.EventType }; return fileSystemEvent; }