Summary
Adds an action to be executed foreach item in the asynchronous list.
This method will be executed the first time the task is executed.
Syntax
public static CakeTaskBuilder DoesForEach<TItem>(this CakeTaskBuilder builder, IAsyncEnumerable<TItem> items, Action<TItem> action)
Examples
Task("Pack")
.DoesForEach(GetFrameworksAsync(), tfm =>
{
Information("Packing {0}", tfm);
});
Type Parameters
| Name |
Description |
| TItem |
The item type. |
Parameters
| Name |
Type |
Description |
| builder |
CakeTaskBuilder |
The task builder. |
| items |
IAsyncEnumerable<TItem> |
The items. |
| action |
Action<TItem> |
The action. |
Return Value