Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Unblock.cs
1using System.Threading.Tasks;
3
5{
10 {
14 public Unblock()
15 : base()
16 {
17 }
18
22 public override string Name => "Unblock";
23
31 public override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
32 {
33 string Endpoint = Arguments[0];
34
35 await Gateway.LoginAuditor.UnblockAndReset(Endpoint);
36 await ResponseCallback("`" + Endpoint + "` unblocked and reset.", string.Empty);
37 }
38
42 public override string ParameterName => "ENDPOINT";
43
47 public override string[] HelpParagraphs => new string[] { "Unblocks a remote endpoint defined by `ENDPOINT`." };
48 }
49}
Static class managing the runtime environment of the IoT Gateway.
Definition: Gateway.cs:126
static LoginAuditor LoginAuditor
Current Login Auditor. Should be used by modules accepting user logins, to protect the system from un...
Definition: Gateway.cs:3033
An administrative command taking one parameter.
Unblocks a remote endpoint.
Definition: Unblock.cs:10
Unblock()
Unblocks a remote endpoint.
Definition: Unblock.cs:14
override string[] HelpParagraphs
Markdown description of syntax.
Definition: Unblock.cs:47
override string ParameterName
Name of parameter.
Definition: Unblock.cs:42
override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
Executes the command.
Definition: Unblock.cs:31
override string Name
Command name
Definition: Unblock.cs:22
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.