예제 #1
0
        private static void WarmParallel(IEnumerable<string> strings)
        {
            for (int i = 0; i < WarmCounter; ++i)
            {
                var fileProcessorFactory = new FileProcessorFactory();
                var sequenceManager = new ParallelFileProcessorManager(fileProcessorFactory);

                sequenceManager.ProcessFile(strings);
            }
        }
예제 #2
0
        private static IEnumerable<string> ProcessParallel(IEnumerable<string> strings)
        {
            var fileProcessorFactory = new FileProcessorFactory();
            var sequenceManager = new ParallelFileProcessorManager(fileProcessorFactory);

            IEnumerable<string> resultStrings = sequenceManager.ProcessFile(strings);

            return resultStrings;
        }