Пример #1
0
        static void Main(string[] args)
        {
            var dataflow = new DataWorkFlow();
            //dataflow.steps.add("start the sequence");
            //dataflow.steps.add("read the data");
            //dataflow.steps.add("compile it");
            //dataflow.steps.add("check results");

            var WorkEngine = new WorkFlowEngine(dataflow);

            WorkEngine.Run();
            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            var workflow = new WorkFlow();

            workflow.Add(new Download());
            workflow.Add(new Unpack());
            workflow.Add(new Install());
            workflow.Add(new Restart());

            var workFlowEngine = new WorkFlowEngine();

            workFlowEngine.Run(workflow);
        }