1 implementation of Path
Microsoft.Extensions.Configuration (1)
ConfigurationSection.cs (1)
39
public string
Path
=> _path;
32 references to Path
DefaultBuilder.SampleApp (1)
Startup.cs (1)
56
await response.WriteAsync($"{pair.
Path
}: {pair.Value}\r\n");
Kestrel.SampleApp (1)
Startup.cs (1)
191
Console.WriteLine($"{pair.
Path
} - {pair.Value}");
Microsoft.AspNetCore (1)
WebApplicationBuilder.cs (1)
304
throw new InvalidOperationException($"Failed to convert configuration value at '{configuration.GetSection(reloadConfigOnChangeKey).
Path
}' to type '{typeof(bool)}'.");
Microsoft.Extensions.Configuration (4)
ConfigurationSectionDebugView.cs (4)
25
public string FullPath => _section.
Path
;
49
int prefixLength = (current is IConfigurationSection rootSection) ? rootSection.
Path
.Length + 1 : 0;
56
IConfigurationProvider? provider = GetValueProvider(root, section.
Path
);
57
string path = section.
Path
.Substring(prefixLength);
Microsoft.Extensions.Configuration.Abstractions (4)
ConfigurationExtensions.cs (2)
58
int prefixLength = (makePathsRelative && configuration is IConfigurationSection rootSection) ? rootSection.
Path
.Length + 1 : 0;
65
yield return new KeyValuePair<string, string?>(section.
Path
.Substring(prefixLength), section.Value);
ConfigurationRootExtensions.cs (2)
45
(string? Value, IConfigurationProvider? Provider) valueAndProvider = GetValueAndProvider(root, child.
Path
);
50
? processValue(new ConfigurationDebugViewContext(child.
Path
, child.Key, valueAndProvider.Value, valueAndProvider.Provider))
Microsoft.Extensions.Configuration.Binder (2)
ConfigurationBinder.cs (2)
216
return ConvertValue(type, value, section.
Path
);
343
if (configValue != null && TryConvertValue(type, configValue, section?.
Path
, out object? convertedValue, out Exception? error))
Microsoft.Extensions.Configuration.KeyPerFile.Tests (19)
ConfigurationProviderTestBase.cs (19)
213
Assert.Equal("Section1", section1.
Path
, StringComparer.InvariantCultureIgnoreCase);
221
Assert.Equal("Section1:Section2", section2.
Path
, StringComparer.InvariantCultureIgnoreCase);
229
Assert.Equal("Section1:Section2", section2.
Path
, StringComparer.InvariantCultureIgnoreCase);
236
Assert.Equal("Section1:Section2:Key3a", section3a.
Path
, StringComparer.InvariantCultureIgnoreCase);
240
Assert.Equal("Section3", section3.
Path
, StringComparer.InvariantCultureIgnoreCase);
245
Assert.Equal("Section3:Section4", section4.
Path
, StringComparer.InvariantCultureIgnoreCase);
250
Assert.Equal("Section3:Section4", section4.
Path
, StringComparer.InvariantCultureIgnoreCase);
258
Assert.Equal("Key1", sections[0].
Path
, StringComparer.InvariantCultureIgnoreCase);
262
Assert.Equal("Section1", sections[1].
Path
, StringComparer.InvariantCultureIgnoreCase);
266
Assert.Equal("Section3", sections[2].
Path
, StringComparer.InvariantCultureIgnoreCase);
274
Assert.Equal("Section1:Key2", sections[0].
Path
, StringComparer.InvariantCultureIgnoreCase);
278
Assert.Equal("Section1:Section2", sections[1].
Path
, StringComparer.InvariantCultureIgnoreCase);
286
Assert.Equal("Section1:Section2:Key3", sections[0].
Path
, StringComparer.InvariantCultureIgnoreCase);
290
Assert.Equal("Section1:Section2:Key3a", sections[1].
Path
, StringComparer.InvariantCultureIgnoreCase);
298
Assert.Equal("Section1:Section2:Key3a:0", sections[0].
Path
, StringComparer.InvariantCultureIgnoreCase);
302
Assert.Equal("Section1:Section2:Key3a:1", sections[1].
Path
, StringComparer.InvariantCultureIgnoreCase);
306
Assert.Equal("Section1:Section2:Key3a:2", sections[2].
Path
, StringComparer.InvariantCultureIgnoreCase);
314
Assert.Equal("Section3:Section4", sections[0].
Path
, StringComparer.InvariantCultureIgnoreCase);
322
Assert.Equal("Section3:Section4:Key4", sections[0].
Path
, StringComparer.InvariantCultureIgnoreCase);