ICakeEngine Interface

Summary

Represents the Cake engine.
Namespace
Cake.Core
Implementing Types
graph BT Type["ICakeEngine"] class Type type-node Implementing0["CakeEngine"]-.->Type click Implementing0 "/api/Cake.Core/CakeEngine"

Syntax

public interface ICakeEngine

Events

Name Type Summary
AfterSetup EventHandler<AfterSetupEventArgs>
Raised at the end of setup before any tasks are run.
AfterTaskSetup EventHandler<AfterTaskSetupEventArgs>
Raised at the end of task setup before each task is run.
AfterTaskTeardown EventHandler<AfterTaskTeardownEventArgs>
Raised at the end of task teardown after each task has been run.
AfterTeardown EventHandler<AfterTeardownEventArgs>
Raised at the end of teardown after all other tasks have been run.
BeforeSetup EventHandler<BeforeSetupEventArgs>
Raised at the start of setup before any tasks are run.
BeforeTaskSetup EventHandler<BeforeTaskSetupEventArgs>
Raised at the start of task setup before each task is run.
BeforeTaskTeardown EventHandler<BeforeTaskTeardownEventArgs>
Raised at the start of task teardown after each task has been run.
BeforeTeardown EventHandler<BeforeTeardownEventArgs>
Raised at the start of teardown after all other tasks have been run.

Properties

Name Value Summary
Tasks IReadOnlyList<ICakeTaskInfo>
Gets all registered tasks.

Methods

Name Value Summary
RegisterSetupAction(Action<ISetupContext>) void
Allows registration of an action that's executed before any tasks are run. If setup fails, no tasks will be executed but teardown will be performed.
RegisterSetupAction<TData>(Func<ISetupContext, TData>) void
Allows registration of an action that's executed before any tasks are run. If setup fails, no tasks will be executed but teardown will be performed.
RegisterTask(string) CakeTaskBuilder
Creates and registers a new Cake task.
RegisterTaskSetupAction(Action<ITaskSetupContext>) void
Allows registration of an action that's executed before each task is run. If the task setup fails, the task will not be executed but the task's teardown will be performed.
RegisterTaskSetupAction<TData>(Action<ITaskSetupContext, TData>) void
Allows registration of an action that's executed before each task is run. If the task setup fails, the task will not be executed but the task's teardown will be performed.
RegisterTaskTeardownAction(Action<ITaskTeardownContext>) void
Allows registration of an action that's executed after each task has been run. If a task setup action or a task fails with or without recovery, the specified task teardown action will still be executed.
RegisterTaskTeardownAction<TData>(Action<ITaskTeardownContext, TData>) void
Allows registration of an action that's executed after each task has been run. If a task setup action or a task fails with or without recovery, the specified task teardown action will still be executed.
RegisterTeardownAction(Action<ITeardownContext>) void
Allows registration of an action that's executed after all other tasks have been run. If a setup action or a task fails with or without recovery, the specified teardown action will still be executed.
RegisterTeardownAction<TData>(Action<ITeardownContext, TData>) void
Allows registration of an action that's executed after all other tasks have been run. If a setup action or a task fails with or without recovery, the specified teardown action will still be executed.
RunTargetAsync(ICakeContext, IExecutionStrategy, ExecutionSettings) Task<CakeReport>
Runs the specified target using the specified IExecutionStrategy.

Extension Methods

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