Exemple #1
0
        public static void Main(string[] args)
        {
            var workFlow = new WorkFlow();

            workFlow.Add(new VideoUploader());
            var callWebService = new CallWebService();

            workFlow.Add(callWebService);
            workFlow.Add(new SendEmail());
            workFlow.Add(new ChangeStatus());

            var engine = new WorkFlowEngine();

            engine.Run(workFlow);

            Console.WriteLine();

            workFlow.Remove(callWebService);

            engine.Run(workFlow);
        }
        static void Main(string[] args)
        {
            var workflow = new WorkFlow();

            workflow.Add(new VideoUploader());
            workflow.Add(new WebServiceCaller());
            workflow.Add(new EmailSender());
            workflow.Add(new StatusChanger());

            var engine = new WorkFlowEngine();

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

            workFlow.Add(new UploadVideo());
            workFlow.Add(new WebService());
            workFlow.Add(new Email());
            workFlow.Add(new ChangeStatus());

            var engine = new WorkFlowEngine();

            engine.Run(workFlow);

            Console.ReadLine();
        }
Exemple #4
0
        static void Main(string[] args)
        {
            var workflow = new Workflow();

            // add tasks to workflow
            workflow.Add(new VideoUploader());
            workflow.Add(new CallService());
            workflow.Add(new EmailSender());
            workflow.Add(new StatusChanger());

            // run objects
            var workflowEngine = new WorkFlowEngine();

            workflowEngine.Run(workflow);

            Console.ReadLine();
        }
Exemple #5
0
        static void Main(string[] args)
        {
            var vidToCloud   = new UploadVidToCloud();
            var callWeb      = new CallWebService();
            var sendEmail    = new SendEmail();
            var changeStatus = new ChangeStatus();

            var work = new Workflow();

            work.Add(vidToCloud);
            work.Add(callWeb);
            work.Add(sendEmail);
            work.Add(changeStatus);

            var doActivities = new WorkFlowEngine();

            doActivities.Run(work);
        }