Skip to content

Commit

Permalink
Update ForEach to ParallelForEach in OrderBatchProcessor
Browse files Browse the repository at this point in the history
The commit changes the 'ForEach' activity to 'ParallelForEach' in the 'OrderBatchProcessor.cs' file. This adjustment seeks to iterate through orders in parallel rather than sequentially, aiming to improve efficiency and performance. The 'ItemSource' property was also renamed to 'Items' to align with the new activity.
  • Loading branch information
sfmskywalker committed Jan 26, 2024
1 parent d4171f3 commit 011233b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ protected override void Build(IWorkflowBuilder builder)
{
new WriteLine("Fetching orders..."),
new FetchOrders(),
new ForEach<Order>
new ParallelForEach<Order>
{
ItemSource = new(orders)
Items = new(orders)
},
new WriteLine("Done!")
}
Expand Down

0 comments on commit 011233b

Please sign in to comment.