public void Dispose() { if (_mongoConnection != null) { _mongoConnection.Reset(); } MainClass.Container.Dispose(); MainClass.Container = null; if (_resetLfProjectsDuringCleanup) { LanguageForgeProjectAccessor.Reset(); } _languageForgeServerFolder.Dispose(); Settings = null; DirectoryFinder.UnitTestHelper.ResetStaticVars(); }
public void Dispose() { _mongoConnection?.Reset(); MainClass.Container?.Dispose(); MainClass.Container = null; if (_resetLfProjectsDuringCleanup) { LanguageForgeProjectAccessor.Reset(); } _languageForgeServerFolder?.Dispose(); Settings = null; if (_releaseSingletons) { SingletonsContainer.Release(); } Environment.SetEnvironmentVariable("FW_CommonAppData", null); }