CakeTaskBuilderOfTExtensions.

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

Summary

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

Syntax

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

Type Parameters

Name Description
TData The type of the data context.

Parameters

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

Return Value

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