1using System.Threading.Tasks;
23 public override string Name =>
"Reapply";
36 await ResponseCallback(
"No approved Legal Identity found.",
string.Empty);
40 TaskCompletionSource<bool> Response =
new TaskCompletionSource<bool>();
44 if (await Response.Task)
45 await ResponseCallback(
"ID application resent.",
string.Empty);
47 await ResponseCallback(
"Unable to resend ID application.",
string.Empty);
53 public override string[]
HelpParagraphs =>
new string[] {
"Resends a Legal Identity application, with the same parameters as the last approved legal identity." };
Configures legal identity for the gateway.
static LegalIdentityConfiguration Instance
Instance of configuration object.
Task Reapply(TaskCompletionSource< bool > Response)
Resends an identity application with the same properties as last time.
static bool HasApprovedLegalIdentities
If there are approved legal identities configured.
An administrative command with no parameters.
Resends a Legal Identity application, with the same parameters as the last approved legal identity.
Reapply()
Resends a Legal Identity application, with the same parameters as the last approved legal identity.
override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
Executes the command.
override string Name
Command name
override string[] HelpParagraphs
Markdown description of syntax.
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.