public FileEnvironment(Version version, BlockConsumerContainer container, FileInfo fileInfo, DateTime startedOn, int totalFiles, int processedFiles, long totalBytes, long processedBytes) { FileStartedOn = DateTime.Now; StartedOn = startedOn; TotalFiles = totalFiles; ProcessedFiles = processedFiles; TotalBytes = totalBytes; ProcessedBytes = processedBytes; File = fileInfo; Container = container; Exceptions = new FileProcessingExceptionCollection(version, fileInfo != null ? fileInfo.FullName : null); }