static void Main(string[] args)
        {
            WorkFlow workFlow = new WorkFlow();

            workFlow.Add(new VideoUploader());
            workFlow.Add(new CallWebService());
            workFlow.Add(new SendEmail());
            workFlow.Add(new ChangeStatus());

            WorkFlowEngine engine = new WorkFlowEngine();

            engine.Run(workFlow);

            Console.ReadLine();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var workFlow = new Workflow();

            workFlow.Add(new VideoUploader());
            workFlow.Add(new CallWebService());
            workFlow.Add(new SendEmail());
            workFlow.Add(new ChangeStatus());

            var engine = new WorkFlowEngine();

            engine.Run(workFlow);

            Console.WriteLine("Press Enter to exit ... !");
            Console.ReadLine();
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome To WorkFlow Engine");
            Console.WriteLine("---------------------------------------------------------------------------");

            var workFlow = new WorkFlow();

            workFlow.Add(new VideoUploader());
            workFlow.Add(new VideoEncoder());
            workFlow.Add(new EmailSender());
            workFlow.Add(new StatusOfVideo());

            var engine = new WorkFlowEngine();

            engine.Run(workFlow);
        }