Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Reboot.cs
1using System.Threading.Tasks;
2
4{
9 {
13 public Reboot()
14 {
15 }
16
20 public override string Name => "Reboot";
21
29 public override Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
30 {
31 return XmppServerModule.Instance.ExecuteCommand(State.To, "shutdown /r", State, false, ResponseCallback);
32 }
33
37 public override string[] HelpParagraphs => new string[] { "Reboots the system." };
38 }
39}
An administrative command with no parameters.
override string Name
Command name
Definition: Reboot.cs:20
override Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
Executes the command.
Definition: Reboot.cs:29
override string[] HelpParagraphs
Markdown description of syntax.
Definition: Reboot.cs:37
Service Module hosting the XMPP broker and its components.
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.