예제 #1
0
        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();
        }
예제 #2
0
        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);
        }