6 writes to Optional
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationBuilderExtensions.cs (1)
54
source.
Optional
= optional;
Microsoft.Extensions.Configuration.KeyPerFile.Tests (5)
ConfigurationProviderCommandLineTest.cs (1)
23
Optional
= true,
KeyPerFileTests.cs (4)
23
new ConfigurationBuilder().AddKeyPerFile(o => o.
Optional
= true).Build();
303
o.
Optional
= true;
382
o.
Optional
= true;
406
Optional
= true,
3 references to Optional
Microsoft.Extensions.Configuration.KeyPerFile (3)
KeyPerFileConfigurationProvider.cs (3)
64
if (Source.
Optional
|| reload) // Always optional on reload
77
if (Source.
Optional
|| reload) // Always optional on reload
117
=> $"{GetType().Name} for files in '{GetDirectoryName()}' ({(Source.
Optional
? "Optional" : "Required")})";