Opc.Ua.Server.DiagnosticsNodeManager.IsDiagnosticsNode C# (CSharp) Method

IsDiagnosticsNode() private method

Returns true of the node is a diagnostics node.
private IsDiagnosticsNode ( NodeState node ) : bool
node NodeState
return bool
        private bool IsDiagnosticsNode(NodeState node)
        {
            if (node == null)
            {
                return false;
            }

            if (!IsDiagnosticsStructureNode(node))
            {
                BaseInstanceState instance = node as BaseInstanceState;

                if (instance == null)
                {
                    return false;
                }

                return IsDiagnosticsStructureNode(instance.Parent);
            }

            return true;
        }