Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
NrClients.cs
1using System.Threading.Tasks;
2
4{
9 {
13 public NrClients()
14 {
15 }
16
20 public override string Name => "NrClients";
21
29 public override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
30 {
31 await ResponseCallback(XmppServerModule.GetClientConnections().Length.ToString(), string.Empty);
32 }
33
37 public override string[] HelpParagraphs => new string[] { "Returns the number of connected clients." };
38 }
39}
An administrative command with no parameters.
Returns the number of connected clients.
Definition: NrClients.cs:9
NrClients()
Returns the number of connected clients.
Definition: NrClients.cs:13
override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
Executes the command.
Definition: NrClients.cs:29
override string[] HelpParagraphs
Markdown description of syntax.
Definition: NrClients.cs:37
Service Module hosting the XMPP broker and its components.
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.