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
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.

OnMessageLogged(Inedo.Diagnostics.LogMessageEventArgs e)

Raises the MessageLogged event.

Remarks

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