private static void Exercise39()
        {
            var workflow = new WorkFlowEngine(new List <IActivity>
            {
                new Upload(), new CallWebService(), new SendEmailToOwner(), new SetStateToProcessing()
            });

            workflow.Run();
        }
Beispiel #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();
        }