/// <summary> /// extra data - add serialization of the execution stack /// </summary> /// <returns></returns> protected override string SerializeDataAfterCommand() { bool execStackExists = ExecutionStack != null && !ExecutionStack.empty(); if (execStackExists) { StringBuilder message = new StringBuilder(); ExecutionStack.buildXML(message); return(message.ToString()); } return(null); }
/// <summary> /// build the XML structure of the command /// </summary> public void buildXML(StringBuilder message) { if (TaskTag != null && MGDataTable.Instance.GetTaskByID(TaskTag) != null && !((Task)MGDataTable.Instance.GetTaskByID(TaskTag)).KnownToServer) { return; } bool execStackExists = _executionStack != null && !_executionStack.empty(); BuildXMLInternal(message, execStackExists); if (execStackExists) { _executionStack.buildXML(message); } }