IExecutionStrategy Interface

Summary

Represents a task execution strategy.
Namespace
Cake.Core
Implementing Types
graph BT Type["IExecutionStrategy"] class Type type-node Implementing0["DefaultExecutionStrategy"]-.->Type click Implementing0 "/api/Cake.Core/DefaultExecutionStrategy"

Syntax

public interface IExecutionStrategy

Methods

Name Value Summary
ExecuteAsync(CakeTask, ICakeContext) Task
Executes the specified task.
HandleErrorsAsync(Func<Exception, ICakeContext, Task>, Exception, ICakeContext) Task
Executes the error handler.
InvokeFinallyAsync(Func<ICakeContext, Task>, ICakeContext) Task
Invokes the finally handler.
PerformSetup(Action<ISetupContext>, ISetupContext) void
Performs the setup.
PerformTaskSetup(Action<ITaskSetupContext>, ITaskSetupContext) void
Performs the specified setup action before each task is invoked.
PerformTaskTeardown(Action<ITaskTeardownContext>, ITaskTeardownContext) void
Performs the specified teardown action after each task is invoked.
PerformTeardown(Action<ITeardownContext>, ITeardownContext) void
Performs the teardown.
ReportErrorsAsync(Func<Exception, Task>, Exception) Task
Executes the error reporter.
Skip(CakeTask, CakeTaskCriteria) void
Skips the specified task.

Extension Methods

Name Value Summary
Dump<IExecutionStrategy>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<IExecutionStrategy>(IExecutionStrategy[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<IExecutionStrategy>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<IExecutionStrategy>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<IExecutionStrategy>(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<IExecutionStrategy>(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