More work in this Configuration Manager
This commit is contained in:
parent
8e6492e979
commit
21d7128e74
11 changed files with 299 additions and 79 deletions
|
|
@ -43,12 +43,12 @@ namespace Core.Configurations.SmartConfiguration
|
|||
set => throw new NotImplementedException("Setting values is not supported.");
|
||||
}
|
||||
|
||||
public IConfigurationSection GetSection(string key)
|
||||
public Microsoft.Extensions.Configuration.IConfigurationSection GetSection(string key)
|
||||
{
|
||||
if (string.IsNullOrEmpty(key))
|
||||
throw new ArgumentNullException(nameof(key));
|
||||
|
||||
return new JsonConfigurationSection(_data, string.IsNullOrEmpty(_path) ? key : $"{_path}:{key}");
|
||||
return null;// new JsonConfigurationSection(_data, string.IsNullOrEmpty(_path) ? key : $"{_path}:{key}");
|
||||
}
|
||||
|
||||
public JToken GetToken() => _data.SelectToken(_normalizedPath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue