CakeTaskBuilderExtensions.

Does<TData>(CakeTaskBuilder, Func<TData, Task>) Method

Summary

Adds an action to be executed when the task is invoked.
Namespace
Cake.Core
Containing Type
CakeTaskBuilderExtensions

Syntax

public static CakeTaskBuilder Does<TData>(this CakeTaskBuilder builder, Func<TData, Task> func) 
    where TData : class

Type Parameters

Name Description
TData The type of the data context.

Parameters

Name Type Description
builder CakeTaskBuilder The task builder.
func Func<TData, Task> The action.

Return Value

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