O'Reilly logo

Microsoft Windows Workflow Foundation 4.0 Cookbook by Andrew Zhu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the Parallel activity

In this task, we will create a sample that will use the Parallel activity. The Parallel activity can execute its child activities in parallel, asynchronously.

How to do it...

  1. Create a workflow project:

    Create a new Workflow Console Application under solution Chapter02 and name the project as UsingParallelActivity.

  2. Create a workflow:

    Open Workflow1.xaml and create a workflow as shown in the following screenshot:

    How to do it...

    Set the properties of both Delay activities:

    How to do it...
  3. Run it:

    Set UsingParallelActivity as StartUp project. Press CTRL+F5

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required