2using System.Threading.Tasks;
17 private string messageBody =
string.Empty;
31 [Page(100,
"Message")]
32 [Header(101,
"Type:")]
33 [ToolTip(102,
"Type of message to log.")]
37 get => this.messageType;
38 set => this.messageType = value;
44 [Page(100,
"Message")]
45 [Header(103,
"Body:")]
46 [ToolTip(104,
"Text of the message to log.")]
50 get => this.messageBody;
51 set => this.messageBody = value;
81 return this.node.CanEditAsync(Caller);
98 return this.node.LogMessageAsync(this.messageType, this.messageBody);
125 return Task.FromResult(
string.Empty);
144 return Task.CompletedTask;
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
Logs a message on a node.
LogMessage(MeteringNode Node)
Logs a message on a node.
Task< string > GetSuccessStringAsync(Language Language)
Gets a success string, if any, of the command. If no specific success string is available,...
Task< string > GetFailureStringAsync(Language Language)
Gets a failure string, if any, of the command. If no specific failure string is available,...
string SortCategory
Sort Category, if available.
Task< string > GetNameAsync(Language Language)
Gets the name of data source.
string SortKey
Sort Key, if available.
Task StartQueryExecutionAsync(Query Query, Language Language)
Starts the execution of a query.
Task ExecuteCommandAsync()
Executes the command.
CommandType Type
Type of command.
Task< bool > CanExecuteAsync(RequestOrigin Caller)
If the command can be executed by the caller.
Task< string > GetConfirmationStringAsync(Language Language)
Gets a confirmation string, if any, of the command. If no confirmation is necessary,...
string CommandID
ID of command.
string MessageBody
Message body
ICommand Copy()
Creates a copy of the command object.
Base class for all metering nodes.
Defines the Metering Topology data source. This data source contains a tree structure of persistent r...
Class handling the reception of data from a query.
Tokens available in request.
MessageType
Type of message.