public ProjectEnvironmentConfiguration Parse(ConfigFile configFile)
        {
            var appSettings = _AppSettingsParser.Parse(configFile);

            if (!appSettings.Any())
            {
                return(null);
            }

            return(new ProjectEnvironmentConfiguration
            {
                ProjectName = configFile.DirectoryName,
                EnvironmentName = Utility.GetEnvironmentName(configFile.FileName),
                ConfigPath = configFile.FilePath,
                AppSettings = appSettings
            });
        }
Esempio n. 2
0
 public List <AppSettingModel> LoadSharedAppSettings(string rootPath)
 {
     return(_AppSettingsParser.Parse(_FileService.GetSharedAppSettings(rootPath)));
 }