Skip to content

Commit 60cf699

Browse files
committed
renamed const to NestedConfigHintChar
1 parent a81d1c6 commit 60cf699

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Serilog.Settings.Configuration/Settings/Configuration/ConfigurationReader.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Serilog.Settings.Configuration
1919
class ConfigurationReader : IConfigurationReader
2020
{
2121
const string LevelSwitchNameRegex = @"^\$[A-Za-z]+[A-Za-z0-9]*$";
22-
const string ConfigSectionHintChar = ">";
22+
const string NestedConfigHintChar = ">";
2323

2424
static IConfiguration _configuration;
2525

@@ -222,7 +222,7 @@ internal ILookup<string, Dictionary<string, IConfigurationArgumentValue>> GetMet
222222
let name = GetSectionName(child)
223223
let callArgs = (from argument in child.GetSection("Args").GetChildren()
224224
select new {
225-
Name = argument.Key.Replace(ConfigSectionHintChar, string.Empty),
225+
Name = argument.Key.Replace(NestedConfigHintChar, string.Empty),
226226
Value = GetArgumentValue(argument) }).ToDictionary(p => p.Name, p => p.Value)
227227
select new { Name = name, Args = callArgs }))
228228
.ToLookup(p => p.Name, p => p.Args);
@@ -238,7 +238,7 @@ IConfigurationArgumentValue GetArgumentValue(IConfigurationSection argumentSecti
238238
}
239239
else
240240
{
241-
if(argumentSection.Key.EndsWith(ConfigSectionHintChar))
241+
if(argumentSection.Key.EndsWith(NestedConfigHintChar))
242242
{
243243
argumentValue = new ConfigurationSectionArgumentValue(new ConfigurationReader(argumentSection, _configurationAssemblies, _dependencyContext));
244244
}

0 commit comments

Comments
 (0)