Ejemplo n.º 1
0
 public void AddChild(BrokerNode child)
 {
     Children[child.Name] = child;
     // TODO
     //if (child.accessible())
     //{
     //    childUpdate(child, false);
     //}
 }
Ejemplo n.º 2
0
 public BrokerNode(string name, BrokerNode parent, string profile)
 {
     if (string.IsNullOrEmpty(profile))
     {
         throw new ArgumentException("Profile must not be null or empty");
     }
     Profile = profile;
     if (parent == null)
     {
         Path = "";
     }
     else
     {
         if (string.IsNullOrEmpty(name))
         {
             throw new ArgumentException("Name must not be null or empty");
         }
         Parent = parent;
         Name   = name;
         Path   = Parent.Path + "/" + name;
     }
 }
Ejemplo n.º 3
0
 public BrokerNode(string name, BrokerNode parent)
     : this(name, parent, "node")
 {
 }
Ejemplo n.º 4
0
 public DownstreamNode(string name, BrokerNode parent)
     : base(name, parent, "node")
 {
 }