Ejemplo n.º 1
0
        public InventoryCollection GetFolderContent(UUID userID, UUID folderID)
        {
            //m_log.Debug("[HG INVENTORY CONNECTOR]: GetFolderContent " + folderID);

            string invURL = GetInventoryServiceURL(userID);

            if (invURL == null) // not there, forward to local inventory connector to resolve
            {
                return(m_LocalGridInventoryService.GetFolderContent(userID, folderID));
            }

            InventoryCollection c = m_Cache.GetFolderContent(userID, folderID);

            if (c != null)
            {
                m_log.Debug("[HG INVENTORY CONNECTOR]: GetFolderContent found content in cache " + folderID);
                return(c);
            }

            IInventoryService connector = GetConnector(invURL);

            return(connector.GetFolderContent(userID, folderID));
        }