private static void Exercise39() { var workflow = new WorkFlowEngine(new List <IActivity> { new Upload(), new CallWebService(), new SendEmailToOwner(), new SetStateToProcessing() }); workflow.Run(); }
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(); }