BuildMaster SDK Reference
Version:

Operation Class

The common base class for all types of operations.

Inheritance Hierarchy

Syntax

public class Operation : Inedo.Diagnostics.ILogger

Events

Name Description
MessageLogged

Occurs when a message is logged.

Methods

Name Description
ExecuteCommandLineAsync(IOperationExecutionContext context, Inedo.Agents.RemoteProcessStartInfo startInfo)

Executes the specified process asychronously and writes process output to the operation's log.

GetDescription(System.Type operationType, Inedo.ExecutionEngine.ActionStatement statement)

Returns a friendly description of the operation.

GetDescription(IOperationConfiguration config)

Returns a friendly description of this operation and its current configuration.

GetLogScopeName(System.Type operationType, Inedo.ExecutionEngine.ActionStatement statement)

Returns the log scope name for the operation.

GetOperationDescription(System.Type operationType, Inedo.ExecutionEngine.ActionStatement statement)

Returns the operation description for the operation.

GetProgress

Returns the current progress of the action as a percentage if it is executing.

Log(Inedo.Diagnostics.MessageLevel logLevel, string message)

Writes the specified message to the corresponding log.

LogProcessError(string text)

Invoked when process error data is received after calling ExecuteCommandLine.

LogProcessOutput(string text)

Invoked when process output data is received after calling ExecuteCommandLine.

OnMessageLogged(Inedo.Diagnostics.LogMessageEventArgs e)

Raises the MessageLogged event.

Remarks

This class should not be inherited directly. Instead, see ExecuteOperation.