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