@@ -408,6 +408,12 @@ public IEnumerable<string> GetSettingValues(string envarName, string section, st
408
408
{
409
409
yield return value ;
410
410
}
411
+
412
+ // Check for an externally specified default value
413
+ if ( TryGetExternalDefault ( section , scope , property , out value ) )
414
+ {
415
+ yield return value ;
416
+ }
411
417
}
412
418
}
413
419
@@ -423,10 +429,10 @@ public IEnumerable<string> GetSettingValues(string envarName, string section, st
423
429
yield return value ;
424
430
}
425
431
426
- // Check for an externally specified default value
427
- if ( TryGetExternalDefault ( section , property , out string defaultValue ) )
432
+ // Check for an externally specified default value without a scope
433
+ if ( TryGetExternalDefault ( section , null , property , out value ) )
428
434
{
429
- yield return defaultValue ;
435
+ yield return value ;
430
436
}
431
437
}
432
438
}
@@ -436,10 +442,11 @@ public IEnumerable<string> GetSettingValues(string envarName, string section, st
436
442
/// This may come from external policies or the Operating System.
437
443
/// </summary>
438
444
/// <param name="section">Configuration section name.</param>
445
+ /// <param name="scope">Optional configuration scope.</param>
439
446
/// <param name="property">Configuration property name.</param>
440
447
/// <param name="value">Value of the configuration setting, or null.</param>
441
448
/// <returns>True if a default setting has been set, false otherwise.</returns>
442
- protected virtual bool TryGetExternalDefault ( string section , string property , out string value )
449
+ protected virtual bool TryGetExternalDefault ( string section , string scope , string property , out string value )
443
450
{
444
451
value = null ;
445
452
return false ;
0 commit comments