Opc.Ua.Server.CustomNodeManager2.GetManagerHandle C# (CSharp) Method

GetManagerHandle() protected method

Returns a unique handle for the node.
protected GetManagerHandle ( ServerSystemContext context, Opc.Ua.NodeId nodeId, NodeState>.IDictionary cache ) : NodeHandle
context ServerSystemContext
nodeId Opc.Ua.NodeId
cache NodeState>.IDictionary
return NodeHandle
        protected virtual NodeHandle GetManagerHandle(ServerSystemContext context, NodeId nodeId, IDictionary<NodeId,NodeState> cache)
        {
            if (!IsNodeIdInNamespace(nodeId))
            {
                return null;
            }

            if (m_predefinedNodes != null)
            {
                NodeState node = null;

                if (m_predefinedNodes.TryGetValue(nodeId, out node))
                {
                    NodeHandle handle = new NodeHandle();

                    handle.NodeId = nodeId;
                    handle.Node = node;
                    handle.Validated = true;

                    return handle;
                }
            }

            return null;
        }

Same methods

CustomNodeManager2::GetManagerHandle ( Opc.Ua.NodeId nodeId ) : object
CustomNodeManager2