Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Backup.cs
1using System.Threading.Tasks;
3
5{
10 {
14 public Backup()
15 {
16 }
17
21 public override string Name => "Backup";
22
30 public override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
31 {
32 string MessageId = await ResponseCallback("Backing up the system...", string.Empty);
33 await Gateway.DoBackup();
34 await ResponseCallback("Backup completed...", MessageId);
35 }
36
40 public override string[] HelpParagraphs => new string[] { "Creates a backup of the system." };
41 }
42}
Static class managing the runtime environment of the IoT Gateway.
Definition: Gateway.cs:126
static async Task DoBackup()
Performs a backup of the system.
Definition: Gateway.cs:3684
An administrative command with no parameters.
override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
Executes the command.
Definition: Backup.cs:30
override string[] HelpParagraphs
Markdown description of syntax.
Definition: Backup.cs:40
override string Name
Command name
Definition: Backup.cs:21
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.