CakeTaskBuilderExtensions.

Finally(CakeTaskBuilder, Func<Task>) Method

Summary

Adds a finally handler to be executed after the task have finished executing.
Namespace
Cake.Core
Containing Type
CakeTaskBuilderExtensions

Syntax

public static CakeTaskBuilder Finally(this CakeTaskBuilder builder, Func<Task> finallyHandler)

Parameters

Name Type Description
builder CakeTaskBuilder The builder.
finallyHandler Func<Task> The finally handler.

Return Value

Type Description
CakeTaskBuilder The same CakeTaskBuilder instance so that multiple calls can be chained.