public void HandleTaskCompletion(FileChunk chunk) { ++_assembledChunkCount; if (_assembledChunkCount == SplitInfo.ChunkCount) { CompleteAssembling(); } }
public ReadFileChunkTask(FileChunk fileChunk, ITaskCompletionObserver fileConverter) : base(fileConverter) { _fileChunk = fileChunk; }
public FileAssembleTask(FileChunk fileChunk, ITaskCompletionObserver observer) : base(observer) { _fileChunk = fileChunk; }
public ConvertFileChunkTask(IMemoryDataConverter converter, FileChunk originalFileChunk, FileAssembler archiveAssembler) { _converter = converter; _originalFileChunk = originalFileChunk; _archiveAssembler = archiveAssembler; }
public void HandleTaskCompletion(FileChunk chunk) { _taskPool.AddTask(new ConvertFileChunkTask(_converter, chunk, _fileAssembler), 1); }