public Cleaner(IPreprocessingIo io, ICleanerLogger log) { _io = io; _log = log; _log.WorkingIn(io.GetFullPath_Merged(""), io.GetFullPath_Out("")); Filters = new HashSet <IFilter>(); Fixers = new HashSet <IFixer>(); }
private void WriteResults(IEnumerable <IDEEvent> events, string relZip) { _log.WritingEvents(); var zip = _io.GetFullPath_Out(relZip); _io.EnsureParentExists(zip); using (var wa = new WritingArchive(zip)) { wa.AddAll(events); } }
public MultiThreadedPreprocessing(IPreprocessingIo io, IMultiThreadedPreprocessingLogger log, int numProcs, Func <int, IIdReader> idReaderFactory, IGrouper grouper, Func <int, IGroupMerger> groupMergerFactory, Func <int, ICleaner> cleanerFactory) { _io = io; _log = log; _numProcs = numProcs; _log.Init(numProcs, _io.GetFullPath_In(""), _io.GetFullPath_Merged(""), _io.GetFullPath_Out("")); _idReaderFactory = idReaderFactory; _grouper = grouper; _groupMergerFactory = groupMergerFactory; _cleanerFactory = cleanerFactory; }