1 write to Source
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
30
Source
= source;
13 references to Source
Microsoft.Extensions.Configuration.FileExtensions (13)
FileConfigurationProvider.cs (13)
32
if (
Source
.ReloadOnChange &&
Source
.FileProvider != null)
35
() =>
Source
.FileProvider.Watch(
Source
.Path!),
38
Thread.Sleep(
Source
.ReloadDelay);
54
=> $"{GetType().Name} for '{
Source
.Path}' ({(
Source
.Optional ? "Optional" : "Required")})";
58
IFileInfo? file =
Source
.FileProvider?.GetFileInfo(
Source
.Path ?? string.Empty);
61
if (
Source
.Optional || reload) // Always optional on reload
67
var error = new StringBuilder(SR.Format(SR.Error_FileNotFound,
Source
.Path));
139
if (
Source
.OnLoadException != null)
146
Source
.OnLoadException.Invoke(exceptionContext);