DefaultExecutionStrategy Class

Summary

The default execution strategy.
Namespace
Cake.Core
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IExecutionStrategy"] click Interface0 "/api/Cake.Core/IExecutionStrategy" Type["DefaultExecutionStrategy"] class Type type-node

Syntax

public sealed class DefaultExecutionStrategy : IExecutionStrategy

Constructors

Name Summary
DefaultExecutionStrategy(ICakeLog) Initializes a new instance of the DefaultExecutionStrategy class.

Methods

Name Value Summary
ExecuteAsync(CakeTask, ICakeContext) Task
Executes the specified task.
HandleErrors(Action<Exception, ICakeContext>, Exception, ICakeContext) void
Executes the error handler.
InvokeFinally(Action) void
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.
ReportErrors(Action<Exception>, Exception) void
Executes the error reporter.
Skip(CakeTask, CakeTaskCriteria) void
Skips the specified task.

Extension Methods

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