コード例 #1
0
            public void AddChild(ServiceIdentityTreeNode childNode)
            {
                if (!this.Identity.IsEdgeDevice)
                {
                    throw new ArgumentException($"{this.Identity.Id} is not an Edge device, only Edge devices can have children");
                }

                this.children.Add(childNode);
                childNode.Parent = Option.Some(this);
                childNode.UpdateAuthChainFromParent(this, this.currentDepth + 1);
            }
コード例 #2
0
 public void AddChild(ServiceIdentityTreeNode childNode)
 {
     this.children.Add(childNode);
     childNode.Parent = Option.Some(this);
     childNode.UpdateAuthChainFromParent(this, this.currentDepth + 1);
 }