コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: FileEnvironment.cs プロジェクト: arucard21/AniDB
        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);
        }