CakeEngineBase Class

Summary

Base-implementation for a wrapped ICakeEngine - the base Shared Engine used by CI modules.
Assembly
Cake.Module.Shared.dll
Namespace
Cake.Module.Shared
Interfaces
  • ICakeEngine
Base Types
  • Object
Derived Types
graph BT Type-->Base0["Object"] Type-.->Interface0["ICakeEngine"] Type["CakeEngineBase"] class Type type-node Derived0["MyGetEngine"]-->Type click Derived0 "/api/Cake.MyGet.Module/MyGetEngine" Derived1["TeamCityEngine"]-->Type click Derived1 "/api/Cake.TeamCity.Module/TeamCityEngine" Derived2["TravisCIEngine"]-->Type click Derived2 "/api/Cake.TravisCI.Module/TravisCIEngine" Derived3["AzurePipelinesEngine"]-->Type click Derived3 "/api/Cake.AzurePipelines.Module/AzurePipelinesEngine"

Syntax

public abstract class CakeEngineBase : ICakeEngine

Constructors

Name Summary
CakeEngineBase(ICakeEngine) Initializes a new instance of the CakeEngineBase class.

Events

Name Type Summary
Setup EventHandler<SetupEventArgs>
Raised during setup before any tasks are run.
TaskSetup EventHandler<TaskSetupEventArgs>
Raised before each task is run.
TaskTeardown EventHandler<TaskTeardownEventArgs>
Raised after each task has been run.
Teardown EventHandler<TeardownEventArgs>
Raised during teardown after all other tasks have been run.

Fields

Name Constant Value Summary
_engine
Gets the wrapped ICakeEngine.

Properties

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

Methods

Name Value Summary
RegisterSetupAction(Action<ICakeContext>) 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(Action<ISetupContext>) void
RegisterSetupAction<TData>(Func<ISetupContext, TData>) void
RegisterTask(string) CakeTaskBuilder
Registers a new 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
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
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
RunTargetAsync(ICakeContext, IExecutionStrategy, ExecutionSettings) Task<CakeReport>
Runs the specified target using the specified IExecutionStrategy.

Extension Methods

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