In the previous tasks, we used the
WorkflowInvoker.Invoke method to start a workflow instance on the same thread as the main program. It is easy to use; however, in most real applications, a workflow should run on an independent thread. In this task, we will use WorkflowApplication to run a workflow instance.
Create a new Workflow Console Application under the
Chapter01 solution and name the project as
In the opening
Workflow1.xaml designer, click on Arguments, create two
InArguments for Number1 and Number2. Create an
for Result. Add an Assign activity to the workflow designer panel. In the Assign activity, ...