Summary
Allows registration of an action that's executed after all other tasks have been run.
If a setup action or a task fails with or without recovery, the specified teardown action will still be executed.
- Namespace
- Cake
.Core - Containing Type
- CakeEngine
Syntax
public void RegisterTeardownAction<TData>(Action<ITeardownContext, 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 |