ScriptHost.

TaskTeardown<TData>(Action<ITaskTeardownContext, TData>) Method

Summary

Allows registration of an action that's executed after each task has been run. If a task setup action or a task fails with or without recovery, the specified task teardown action will still be executed.
Namespace
Cake.Core.Scripting
Containing Type
ScriptHost

Syntax

public void TaskTeardown<TData>(Action<ITaskTeardownContext, TData> action) where TData : class

Type Parameters

Name Description
TData The data type.

Parameters

Name Type Description
action Action<ITaskTeardownContext, TData> The action to be executed.

Return Value

Type Description
void