public TransformationProcessor(ITransformer transformer , IDownloader downloader , IZipProcessor zipProcessor , IMappingProvider mappingProvider) { _transformer = transformer; _downloader = downloader; _zipProcessor = zipProcessor; _mappingProvider = mappingProvider; }
public GapFillUtilityExecutor(AppSettings appSettings, ILogger logger) { _appSettings = appSettings; _logger = logger; _httpClient = new HttpClient(); _storagePath = Directory.CreateDirectory($@"C:\Projects\assetfiles\{Helpers.GetUniqueDateStampAudit()}\").FullName; _zipProcessor = new HarvestZipProcessor(); _downloader = new HarvestDownloader(); _transformer = new SaxonTransformer(_appSettings.ConfigurationSettings.SaxonTransformationFile, _logger); _archiveProcessor = new HarvestArchiveProcessor(_transformer); _mappingProvider = new MappingProvider(); _transformationProcessor = new TransformationProcessor(_transformer, _downloader, _zipProcessor, _mappingProvider); }
public ZipFactory(string inputFile, string outputFile, int numberOfCores = 0) { byteQueue = new ByteQueue(); _inputFile = inputFile; _outputFile = outputFile; if (numberOfCores == 0) _numberOfCores = Environment.ProcessorCount; else _numberOfCores = numberOfCores; zipProcessor = new GZipProcessor(); }