Exemplo n.º 1
0
 public BrokerTree(Broker broker)
 {
     _broker     = broker;
     SuperRoot   = new BrokerNode(null, null, "dsa/broker");
     _downstream = new DownstreamNode("downstream", SuperRoot);
     SuperRoot.AddChild(_downstream);
 }
Exemplo n.º 2
0
 private async Task CheckNode(INode Node)
 {
     foreach (INode Child in await MeteringTopology.Root.ChildNodes)
     {
         if (Child is MqttBrokerNode BrokerNode)
         {
             BrokerNode.GetBroker();                     // Makes sure it is initialized.
         }
         else if (Child is IpHost IpHost)
         {
             await this.CheckNode(IpHost);
         }
     }
 }
Exemplo n.º 3
0
 public DSLinkNode(string name, BrokerNode parent)
     : base(name, parent, "dslink")
 {
 }