Last post Jul 02, 2018 12:14 PM by jammycakes
Jun 28, 2018 11:36 AM|nambir|LINK
I have a process it has 8 tasks. First four tasks depends on completion of earlier Tasks.
Last 4 tasks can run in parallel. So for this scenario can i go for Chain of Responsibility?
How to implement in Chain of Responsibility for the parallel tasks?
Generally in Chain of Responsibility on completion of task other starts.
Check below screen shot.
Jun 29, 2018 09:14 AM|DA924|LINK
Why are you concerned with what is happening after task 4 if all the tasks can run together after task 4?
Jul 02, 2018 12:14 PM|jammycakes|LINK
For something like this I'd just keep it simple:
Task.WaitAll(Task5(), Task6(), Task7(), Task8());
You only need a Chain of Responsibility if you don't know in advance how many tasks you need to run. Don't over-complicate things.