public static void Main(string[] args) { Activity wf = new Sequence1(); WorkflowInvoker.Invoke(wf); Console.WriteLine("Press <return> to continue..."); Console.Read(); }
// start the WF and interact with the user static void Main() { AutoResetEvent resetEvent = new AutoResetEvent(false); // create the instance of the workflow Activity program = new Sequence1(); // create and start a workflow application WorkflowApplication application = StartWorkflow(program, resetEvent); // interact with the application Interact(application, resetEvent); }