static void Main(string[] args) { var engine = new WorkflowEngine(); engine.AddWorkFlow(new DbWorkflow()); engine.Run(); engine.AddWorkFlow(new VideoWorkflow()); engine.Run(); }
static void Main(string[] args) { var workflow = new Workflow(); workflow.RegisterActivity(new VideoUploadActivity()); workflow.RegisterActivity(new VideoEncodeActivity()); var workflowEngine = new WorkflowEngine(workflow); workflowEngine.Run(); Console.WriteLine("Press a key to continue..."); Console.ReadKey(); }