Esempio n. 1
0
        static void Main(string[] args)
        {
            Workflow workflow = new Workflow();

            workflow.Add(new UploadVideo());
            workflow.Add(new SendMail());

            WorkFlowEngine engine = new WorkFlowEngine();

            engine.Run(workflow);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            WorkFlow workflow = new WorkFlow();

            workflow.AddWorkFlowObject(new VideoUploader());
            workflow.AddWorkFlowObject(new CallWebService());
            workflow.AddWorkFlowObject(new SendEmail());
            workflow.AddWorkFlowObject(new ChangeStatus());

            var engine = new WorkFlowEngine();

            engine.Run(workflow);

            Console.ReadKey();
        }