ParallelForEach<T> is actually a special
ForEach<T> activity. The difference between
ForEach<T> is that
ParallelForEach<T>'s embedded statements are scheduled and run asynchronously.
ParallelForEach<T> itself is akin to a Parallel activity for its child activities. Let's create a sample to see how it works.
Create a new Workflow Console Application under solution
Chapter02and name the project
Create a workflow:
Workflow1.xamland author a workflow as shown in the following screenshot:
Set the properties of both Delay activities: