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