/// <summary> /// Clears the contents of the cache. /// </summary> public void Clear() { ComponentsLibraryCacheHelper.DeleteCacheFile(); this.m_typeFiles.Clear(); this.m_componentFiles.Clear(); this.WasModified = true; }
/// <summary> /// Checks the cache integrity. /// </summary> /// <param name="baseDirectory">The base application directory.</param> public void CheckAppInformation(string baseDirectory) { string executable = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName; if (this.m_appExecutable == null || this.m_appExecutable != executable || this.m_baseDirectory == null || this.m_baseDirectory != baseDirectory) { ComponentsLibraryCacheHelper.DeleteCacheFile(); this.Clear(); this.m_appExecutable = executable; this.m_baseDirectory = baseDirectory; } }