Summary
Allows registration of an action that's executed before each task is run.
If the task setup fails, the task will not be executed but the task's teardown will be performed.
- Namespace
- Cake
.Core - Containing Type
- CakeEngine
Syntax
public void RegisterTaskSetupAction<TData>(Action<ITaskSetupContext, TData> action)
where TData : class
Type Parameters
Name | Description |
---|---|
TData | The data type. |
Parameters
Name | Type | Description |
---|---|---|
action | Action |
The action to be executed. |
Return Value
Type | Description |
---|---|
void |