public T Value <T>(string key, params string[] sections) { var config = new ConfigAttribute(sections); return(_configuration.GetSection(config.GetSections()).GetValue <T>(key)); }