4 writes to Path
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationSource.cs (1)
89
Path
= pathToFile;
Microsoft.Extensions.Configuration.Ini (1)
IniConfigurationExtensions.cs (1)
77
s.
Path
= path;
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationExtensions.cs (1)
77
s.
Path
= path;
Microsoft.Extensions.Configuration.Xml (1)
XmlConfigurationExtensions.cs (1)
86
s.
Path
= path;
12 references to Path
Microsoft.AspNetCore.Tests (4)
WebApplicationTests.cs (4)
705
Assert.Contains(config.Sources, source => source is JsonConfigurationSource jsonSource && jsonSource.
Path
== "appsettings.json");
709
Assert.Contains(config.Sources, source => source is JsonConfigurationSource jsonSource && jsonSource.
Path
== "appsettings.Development.json");
713
Assert.DoesNotContain(config.Sources, source => source is JsonConfigurationSource jsonSource && jsonSource.
Path
== "appsettings.Development.json");
763
Assert.Contains(config.Sources, source => source is JsonConfigurationSource jsonSource && jsonSource.
Path
== "secrets.json");
Microsoft.Extensions.Configuration.FileExtensions (8)
FileConfigurationProvider.cs (4)
35
() => Source.FileProvider.Watch(Source.
Path
!),
54
=> $"{GetType().Name} for '{Source.
Path
}' ({(Source.Optional ? "Optional" : "Required")})";
58
IFileInfo? file = Source.FileProvider?.GetFileInfo(Source.
Path
?? string.Empty);
67
var error = new StringBuilder(SR.Format(SR.Error_FileNotFound, Source.
Path
));
FileConfigurationSource.cs (4)
76
!string.IsNullOrEmpty(
Path
) &&
77
System.IO.Path.IsPathRooted(
Path
))
79
string? directory = System.IO.Path.GetDirectoryName(
Path
);
80
string? pathToFile = System.IO.Path.GetFileName(
Path
);