1 write to Source
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
27
Source
= source ?? throw new ArgumentNullException(nameof(source));
13 references to Source
Microsoft.Extensions.Configuration.KeyPerFile (13)
KeyPerFileConfigurationProvider.cs (13)
29
if (
Source
.ReloadOnChange &&
Source
.FileProvider != null)
32
() =>
Source
.FileProvider.Watch("*"),
35
Thread.Sleep(
Source
.ReloadDelay);
43
=> key.Replace(
Source
.SectionDelimiter, ConfigurationPath.KeyDelimiter);
62
if (
Source
.FileProvider == null)
64
if (
Source
.Optional || reload) // Always optional on reload
74
var directory =
Source
.FileProvider.GetDirectoryContents("/");
77
if (
Source
.Optional || reload) // Always optional on reload
97
if (
Source
.IgnoreCondition == null || !
Source
.IgnoreCondition(file.Name))
110
=>
Source
.FileProvider?.GetFileInfo("/")?.PhysicalPath ?? "<Unknown>";
117
=> $"{GetType().Name} for files in '{GetDirectoryName()}' ({(
Source
.Optional ? "Optional" : "Required")})";