4 writes to Path
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationSource.cs (1)
89Path = pathToFile;
Microsoft.Extensions.Configuration.Ini (1)
IniConfigurationExtensions.cs (1)
77s.Path = path;
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationExtensions.cs (1)
77s.Path = path;
Microsoft.Extensions.Configuration.Xml (1)
XmlConfigurationExtensions.cs (1)
86s.Path = path;
12 references to Path
Microsoft.AspNetCore.Tests (4)
WebApplicationTests.cs (4)
705Assert.Contains(config.Sources, source => source is JsonConfigurationSource jsonSource && jsonSource.Path == "appsettings.json"); 709Assert.Contains(config.Sources, source => source is JsonConfigurationSource jsonSource && jsonSource.Path == "appsettings.Development.json"); 713Assert.DoesNotContain(config.Sources, source => source is JsonConfigurationSource jsonSource && jsonSource.Path == "appsettings.Development.json"); 763Assert.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")})"; 58IFileInfo? file = Source.FileProvider?.GetFileInfo(Source.Path ?? string.Empty); 67var error = new StringBuilder(SR.Format(SR.Error_FileNotFound, Source.Path));
FileConfigurationSource.cs (4)
76!string.IsNullOrEmpty(Path) && 77System.IO.Path.IsPathRooted(Path)) 79string? directory = System.IO.Path.GetDirectoryName(Path); 80string? pathToFile = System.IO.Path.GetFileName(Path);