BuildMaster SDK Reference
Version:

ExecuteRemoteCommand(string name) Method

Executes the specified Action-defined command against the remotely running agent, which is then processed by the Action-defined Inedo.BuildMaster.Extensibility.Actions.RemoteActionBase.ProcessRemoteCommand(System.String,System.String[]).

Syntax

protected string ExecuteRemoteCommand(string name)

Parameters

name
Type: string

Action-defined command name.

Returns

Action-defined return string.

Remarks

This method is meant to be called from the ActionBase.Execute method to begin remote execution. Additionally, this method has been deprecated if the consuming agent type is anything other than the SOAP/TCP variety. The new recommended approach is to call Util.Agents.CreateAgentFromId(...) and cast to the appropriate interface (e.g. IFileOperationsExecuter) in order to perform remote actions on an agent.