IFrostingTask Interface

Summary

A IFrostingTask represents a unit of work.
graph BT Type["IFrostingTask"] class Type type-node Implementing0["UnitTestsTask"]-.->Type click Implementing0 "/api/Cake.Frosting.Tests/UnitTestsTask" Implementing1["FrostingTask<T>"]-.->Type click Implementing1 "/api/Cake.Frosting/FrostingTask_1" Implementing2["DummyTask3"]-.->Type click Implementing2 "/api/Cake.Frosting.Tests/DummyTask3" Implementing3["BuildTask"]-.->Type click Implementing3 "/api/Cake.Frosting.Tests/BuildTask" Implementing4["DependeeTask"]-.->Type click Implementing4 "/api/Cake.Frosting.Tests/DependeeTask" Implementing5["AsyncFrostingTask<T>"]-.->Type click Implementing5 "/api/Cake.Frosting/AsyncFrostingTask_1" Implementing6["OnErrorRunAsyncFailedTask"]-.->Type click Implementing6 "/api/Cake.Frosting.Tests/OnErrorRunAsyncFailedTask" Implementing7["OnErrorRunCompletedTask"]-.->Type click Implementing7 "/api/Cake.Frosting.Tests/OnErrorRunCompletedTask" Implementing8["ThrowingTask"]-.->Type click Implementing8 "/api/Cake.Frosting.Tests/ThrowingTask" Implementing9["FinallyTask"]-.->Type click Implementing9 "/api/Cake.Frosting.Tests/FinallyTask" Implementing10["InvalidDependencyTask"]-.->Type click Implementing10 "/api/Cake.Frosting.Tests/InvalidDependencyTask" Implementing11["OnErrorRunFailedTask"]-.->Type click Implementing11 "/api/Cake.Frosting.Tests/OnErrorRunFailedTask" Implementing12["CleanTask"]-.->Type click Implementing12 "/api/Cake.Frosting.Tests/CleanTask" Implementing13["ContinueOnErrorTask"]-.->Type click Implementing13 "/api/Cake.Frosting.Tests/ContinueOnErrorTask" Implementing14["DummyTask2"]-.->Type click Implementing14 "/api/Cake.Frosting.Tests/DummyTask2" Implementing15["DummyTask"]-.->Type click Implementing15 "/api/Cake.Frosting.Tests/DummyTask" Implementing16["FrostingTask"]-.->Type click Implementing16 "/api/Cake.Frosting/FrostingTask" Implementing17["AsyncFrostingTask"]-.->Type click Implementing17 "/api/Cake.Frosting/AsyncFrostingTask"

Syntax

public interface IFrostingTask

Properties

Name Value Summary
SkippedMessage string
Gets message used for criteria if ShouldRun(ICakeContext) returns false.

Methods

Name Value Summary
Finally(ICakeContext) void
The finally handler to be executed after the task have finished executing.
OnError(Exception, ICakeContext) void
The error handler to be executed if an exception occurs in the task.
RunAsync(ICakeContext) Task
Runs the task using the specified context.
ShouldRun(ICakeContext) bool
Gets whether or not the task should be run.

Extension Methods

Name Value Summary
Dump<IFrostingTask>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<IFrostingTask>(IFrostingTask[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<IFrostingTask>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<IFrostingTask>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<IFrostingTask>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<IFrostingTask>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin