2using System.Threading.Tasks;
31 this.commandNode = CommandNode;
43 public string CommandID => this.commandNode.CommandId;
58 public string SortKey => this.commandNode.SortKey;
96 return this.commandNode.ParsedScript.EvaluateAsync(this.values);
106 throw new Exception(
"Script command is not a query.");
115 return new ScriptCommand(this.node, this.commandNode, this.parameters);
132 Value = v.ValueObject;
Static class managing editable parameters in objects. Editable parameters are defined by using the at...
Contains information about a language.
Contains information about a variable.
Class handling the reception of data from a query.
Tokens available in request.
Represents a command on a script node.
string SortCategory
Sort Category, if available.
string SortKey
Sort Key, if available.
Task< bool > CanExecuteAsync(RequestOrigin Caller)
If the command can be executed by the caller.
Task< string > GetSuccessStringAsync(Language Language)
Gets a success string, if any, of the command. If no specific success string is available,...
Task ExecuteCommandAsync()
Executes the command.
Task< string > GetConfirmationStringAsync(Language Language)
Gets a confirmation string, if any, of the command. If no confirmation is necessary,...
string CommandID
ID of command.
async Task< SetEditableFormResult > SetParameters(DataForm Parameters, Language Language, bool OnlySetChanged)
Sets the parameters of the object, based on contents in the data form.
CommandType Type
Type of command.
ScriptCommand(VirtualNode Node, ScriptCommandNode CommandNode, ScriptParameterNode[] Parameters)
Represents a command on a script node.
Task< string > GetNameAsync(Language Language)
Gets the name of data source.
Task StartQueryExecutionAsync(Query Query, Language Language)
Starts the execution of a query.
ICommand Copy()
Creates a copy of the command object.
async Task PopulateForm(DataForm Parameters, Language Language)
Populates a data form with parameters for the object.
Task< string > GetFailureStringAsync(Language Language)
Gets a failure string, if any, of the command. If no specific failure string is available,...
Represents a command that can be executed on a script node or script reference node.
Represents a parameter on a command.
abstract Task SetParameter(DataForm Parameters, Language Language, bool OnlySetChanged, Variables Values, SetEditableFormResult Result)
Sets the parameters of the object, based on contents in the data form.
abstract Task PopulateForm(DataForm Parameters, Language Language, object Value)
Populates a data form with parameters for the object.
string ParameterName
Parameter name.
Virtual node, that can be used as a placeholder for services.
Interface for editable objects.