public MergeChunksOperation(Channel <FileInfo> chunksChannel, FileInfo file1, FileInfo file2, SortingPathsHelper pathsHelper) { _chunksChannel = chunksChannel; _file1 = file1; _file2 = file2; _pathsHelper = pathsHelper; }
public OperationsFactory(ISettings settings, SortingPathsHelper pathsHelper) { _sourceFileChannel = Channel.CreateUnbounded <string>(); _chunksChannel = Channel.CreateUnbounded <FileInfo>(); _settings = settings; _pathsHelper = pathsHelper; _operationsCount = _settings.MaximumOperationsCount; }
internal CreateChunkFilesOperation(ChannelReader <string> channelReader, ChannelWriter <FileInfo> channelWriter, SortingPathsHelper pathsHelper, ISettings settings) { _channelReader = channelReader; _channelWriter = channelWriter; _pathsHelper = pathsHelper; _settings = settings; }
public OperationsManager(ISettings settings, SortingPathsHelper pathsHelper) { _operationsCount = settings.MaximumOperationsCount; _operationsChannel = Channel.CreateBounded <IOperation>(_operationsCount); _operationsFactory = new OperationsFactory(settings, pathsHelper); }