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