Пример #1
0
 private static void ValidateRecordLength(LogRecord record, long bufferSize)
 {
     if (record.Length <= 0 || record.Length > bufferSize)
     {
         throw new Exception("Invalid record length");
     }
 }
Пример #2
0
 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;
 }