protected override void workProcessing() { Reduce = (Reduce)loadClientAssembly(AssemblyMetaData.ReduceClassName); var filesToProcess = WorkerConfig.WorkConfig.FilesToProcess; foreach (KeyValuePair <string, List <S3ObjectMetadata> > entry in filesToProcess) { LineReader lineReader = new LineReader(entry.Value); Reduce.setKey(entry.Key); Reduce.reduce(entry.Key, lineReader); lineReader.dispose(); } }