Summary
A
CakeTask represents a unit of work.
- Namespace
- Cake
.Core - Interfaces
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type-.->Interface0["ICakeTaskInfo"]
click Interface0 "/api/Cake.Core/ICakeTaskInfo"
Type["CakeTask"]
class Type type-node
Syntax
public sealed class CakeTask : ICakeTaskInfo
Constructors
| Name | Summary |
|---|---|
| CakeTask |
Initializes a new instance of the CakeTask class.
|
Properties
| Name | Value | Summary |
|---|---|---|
| Actions | List |
Gets the task's actions.
|
| Criterias | List |
Gets the task's criterias.
|
| DeferExceptions | bool |
Gets or sets a value indicating whether gets the task's state if it will defer exceptions until the end of the task.
|
| DelayedActions | Queue |
Gets the task's actions that are run at execution time to additionally populate
Actions.
|
| Dependees | List |
Gets the tasks that the task want to be a dependency of.
|
| Dependencies | List |
Gets the task's dependencies.
|
| Description | string |
Gets the description of the task.
|
| ErrorHandler | Func |
Gets or sets the error handler.
|
| ErrorReporter | Func |
Gets or sets the error reporter.
|
| FinallyHandler | Func |
Gets or sets the finally handler.
|
| Name | string |
Gets the name of the task.
|
Methods
| Name | Value | Summary |
|---|---|---|
| Execute |
Task |
Executes the task using the specified context.
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| AddAction |
void |
Adds the action to the task's actions.
From CakeTaskExtensions
|
| AddCriteria |
void |
Adds to the task's criteria.
From CakeTaskExtensions
|
| AddDelayedAction |
void |
Adds the action to the task's delayed actions.
From CakeTaskExtensions
|
| AddDependee |
void |
Adds the dependee to the task's dependees.
From CakeTaskExtensions
|
| AddDependency |
void |
Adds the dependency to the task's dependencies.
From CakeTaskExtensions
|
| Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
| IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
| NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
| NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
| SetDeferExceptions |
void |
Sets the task's defer exceptions state.
From CakeTaskExtensions
|
| SetErrorHandler |
void |
Sets the task's error handler.
From CakeTaskExtensions
|
| SetErrorHandler |
void |
Sets the task's error handler.
From CakeTaskExtensions
|
| SetErrorReporter |
void |
Sets the task's error reporter.
From CakeTaskExtensions
|
| SetErrorReporter |
void |
Sets the task's error reporter.
From CakeTaskExtensions
|
| SetFinallyHandler |
void |
Sets the task's finally handler.
From CakeTaskExtensions
|
| SetFinallyHandler |
void |
Sets the task's finally handler.
From CakeTaskExtensions
|
| SetFinallyHandler |
void |
Sets the task's finally handler.
From CakeTaskExtensions
|
| SetFinallyHandler |
void |
Sets the task's finally handler.
From CakeTaskExtensions
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
| To |
string |
Returns the string value or a
Not set> markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
