public void Build(IWorkflowBuilder builder) { builder .ParallelForEach( _items, iterate => iterate .Then <WriteLine>(activity => activity.Set(x => x.Text, context => $"{context.Input}")).WithId("WriteLine") .Then <SignalReceived>() /* Block workflow.*/ .WriteLine("Resumed")) .WriteLine("All iterations executing in parallel"); }