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

LookupNodeInComponentCache() protected method

Looks up a component in cache.
protected LookupNodeInComponentCache ( ISystemContext context, NodeHandle handle ) : NodeState
context ISystemContext
handle NodeHandle
return NodeState
        protected NodeState LookupNodeInComponentCache(ISystemContext context, NodeHandle handle)
        {
            lock (Lock)
            {
                if (m_componentCache == null)
                {
                    return null;
                }

                CacheEntry entry = null;

                if (!String.IsNullOrEmpty(handle.ComponentPath))
                {
                    if (m_componentCache.TryGetValue(handle.RootId, out entry))
                    {
                        return entry.Entry.FindChildBySymbolicName(context, handle.ComponentPath);
                    }
                }
                else
                {
                    if (m_componentCache.TryGetValue(handle.NodeId, out entry))
                    {
                        return entry.Entry;
                    }
                }

                return null;
            }
        }
CustomNodeManager2