Summary
Gives a
CakeTaskBuilder<TData> bound to specific data context type.
- Namespace
- Cake
.Core - Containing Type
- Cake
Task Builder Of T Extensions
Syntax
public static CakeTaskBuilder<TData> Of<TData>(this CakeTaskBuilder builder) where TData : class
Examples
Task("Hello")
.Of<Foo>()
.Does((context, data) =>
{
context.Log.Information("Hello {0}", data.Place);
});
Type Parameters
| Name | Description |
|---|---|
| TData | The type of the data context. |
Parameters
| Name | Type | Description |
|---|---|---|
| builder | CakeTaskBuilder | The task builder. |
Return Value
| Type | Description |
|---|---|
| CakeTaskBuilder |
A CakeTaskBuilder<TData>. |
