internal CatalogCacheManager(ServerTree oServerTree, string strCacheDir) { m_strCacheDir = Path.Combine(strCacheDir, "Dap Catalog Cache"); Directory.CreateDirectory(m_strCacheDir); #endif // Start the timer m_timer = new Timer(new TimerCallback(OnTimer), null, 0, (long)m_tsCleanupFrequency.TotalMilliseconds); m_oServerTree = oServerTree; }
/// <summary> /// Initializes a new instance of the CatalogCacheManager class. /// </summary> /// <param name="strCacheDir">Location of the cache files.</param> /// <remarks>Only files with extension .gz is managed and cleaned up</remarks> #if !DAPPLE internal CatalogCacheManager(ServerTree oServerTree) { // --- Create the cache manager --- GXNet.CSYS.IGetDirectory(GXNet.Constant.SYS_DIR_USER, ref m_strCacheDir); m_strCacheDir = Path.Combine(m_strCacheDir, "Dap Catalog Cache");