2using System.Threading.Tasks;
23 public override string Name =>
"Cancel";
37 XmppServerModule.autoUpdateTP = DateTime.MinValue;
41 await ResponseCallback(
"Auto-update procedure cancelled.",
string.Empty);
44 await ResponseCallback(
"No auto-update procedure active.",
string.Empty);
50 public override string[]
HelpParagraphs =>
new string[] {
"Cancels the current auto-update delay. Disabling auto-updates is done using the `auto 0` command." };
Static class managing the runtime environment of the IoT Gateway.
static bool CancelScheduledEvent(DateTime When)
Cancels a scheduled event.
Static class managing persistent settings.
static async Task< bool > SetAsync(string Key, string Value)
Sets a string-valued setting.
An administrative command with no parameters.
Cancels an auto-update procedure.
Cancel()
Cancels an auto-update procedure.
override string[] HelpParagraphs
Markdown description of syntax.
override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
Executes the command.
override string Name
Command name
Service Module hosting the XMPP broker and its components.
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.