2using System.Threading.Tasks;
24 public override string Name =>
"ParentGraph";
35 StringBuilder sb =
new StringBuilder();
37 sb.AppendLine(
"```dot");
38 sb.AppendLine(
"digraph G {");
39 sb.AppendLine(
"rankdir=LR");
41 sb.Append(IoTGateway.Setup.XmppConfiguration.Instance.Host);
42 sb.Append(
"\" -> \"");
44 sb.AppendLine(
"\" [dir=back];");
48 await ResponseCallback(sb.ToString(),
string.Empty);
54 public override string[]
HelpParagraphs =>
new string[] {
"Returns a GraphViz graph of the current broker connected to its parent broker. Consolidating responses from multiple brokers generates a topology graph of all brokers." };
Static class managing the runtime environment of the IoT Gateway.
static CaseInsensitiveString Domain
Domain name.
static XmppClient XmppClient
XMPP Client connection of gateway.
static bool HasDomain
If a domain name is configured.
An administrative command with no parameters.
Returns a GraphViz graph of the current broker connected to its parent broker. Consolidating response...
ParentGraph()
Returns a GraphViz graph of the current broker connected to its parent broker. Consolidating response...
override string[] HelpParagraphs
Markdown description of syntax.
override string Name
Command name
override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
Executes the command.
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.