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;
}
}