private IEnumerator SaveReconstructionChangesInProfile() { bool ready = false; Thread saveThread = new Thread(() => { _environmentProfileRepository.Save(); ready = true; }); saveThread.Start(); yield return(new WaitUntil(() => ready)); }
private void DeleteDefaultEnvironments() { IEnvironmentProfile defaultEnvironment = _environmentProfileRepository.FindByName(EnvironmentConstants.DefaultEnvironmentName); if (defaultEnvironment == null) { return; } string environmentPath = _environmentProfileRepository.GetPath(defaultEnvironment.Id); _environmentProfileRepository.Delete(defaultEnvironment.Id); if (Directory.Exists(environmentPath)) { Directory.Delete(environmentPath, true); } _environmentProfileRepository.Save(); }
private void Save() { _environmentProfileRepository.Save(); }