Example #1
0
        public static Stage New(string key)
        {
            Stage stage = Stage.New();

            stages.Add(key, stage);
            return(stage);
        }
Example #2
0
        public static Stage Process(this IProcessor processor, Stage input)
        {
            Stage output = Stage.New();

            foreach (Document document in input.Documents)
            {
                processor.Process(document, output);
            }
            return(output);
        }