Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Reapply.cs
1using System.Threading.Tasks;
3
5{
11 {
16 public Reapply()
17 {
18 }
19
23 public override string Name => "Reapply";
24
32 public override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
33 {
35 {
36 await ResponseCallback("No approved Legal Identity found.", string.Empty);
37 return;
38 }
39
40 TaskCompletionSource<bool> Response = new TaskCompletionSource<bool>();
41
43
44 if (await Response.Task)
45 await ResponseCallback("ID application resent.", string.Empty);
46 else
47 await ResponseCallback("Unable to resend ID application.", string.Empty);
48 }
49
53 public override string[] HelpParagraphs => new string[] { "Resends a Legal Identity application, with the same parameters as the last approved legal identity." };
54 }
55}
An administrative command with no parameters.
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.