Creating a WF program using C# Code
In this task, we will create the same "HelloWorkflow" function workflow using pure C# code, beginning from a Console Application.
How to do it...
- Create a Console Application project:
Create a new Console Application project under the
Chapter01
solution. Name the projectHelloCodeWorkflow
. The following screenshot shows the Console Application new project dialog: - Add reference to the
System.Activities
assembly:By default, a new Console Application doesn't have reference to the
System.Activities
assembly, due to which we need to perform this step. - Create workflow definition code:
Open
Program.cs
file and change the ...
Get Microsoft Windows Workflow Foundation 4.0 Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.