1 write to Source
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
31
Source
= source;
14 references to Source
Microsoft.Extensions.Configuration.FileExtensions (14)
FileConfigurationProvider.cs (14)
33
if (
Source
.ReloadOnChange &&
Source
.FileProvider != null)
36
() =>
Source
.FileProvider.Watch(
Source
.Path!),
39
await Task.Delay(
Source
.ReloadDelay).ConfigureAwait(false);
66
=> $"{GetType().Name} for '{
Source
.Path}' ({(
Source
.Optional ? "Optional" : "Required")})";
70
IFileInfo? file =
Source
.FileProvider?.GetFileInfo(
Source
.Path ?? string.Empty);
136
string filePath = file.PhysicalPath ??
Source
.Path ?? file.Name;
159
if (
Source
.Optional || reload) // Always optional on reload
166
var error = new StringBuilder(SR.Format(SR.Error_FileNotFound,
Source
.Path ?? file?.Name));
209
if (
Source
.OnLoadException != null)
216
Source
.OnLoadException.Invoke(exceptionContext);