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();
        }
Exemple #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();
        }
Exemple #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);
        }