September 2010
Intermediate to advanced
272 pages
5h 16m
English
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 UseWorkflowApplication.
In the opening Workflow1.xaml designer, click on Arguments, create two Int32
InArguments for Number1 and Number2. Create an Int32 OutArgument
for Result. Add an Assign activity to the workflow designer panel. In the Assign activity, ...