private void LoadConfig() { _logger.Info($"Loading Doorstop config"); try { string[] lines = File.ReadAllLines(_configFileName); _logger.Info("Doorstop config found! Parsing..."); _configValues = InternalLoadConfig(lines); } catch (FileNotFoundException) { _logger.Info("Doorstop config not found!"); throw; } catch (Exception) { _logger.Error("Invalid Config!"); throw; } }
private void InstallConfigFile() { _configValues = new ConfigValues(true, _expectedTargetAssemblyPath); SaveConfig(); }