Class StateOverlayConfiguration
Adds the state-specific configuration overlay (appsettings.{state}.json) to the application's configuration chain.
public static class StateOverlayConfiguration
- Inheritance
-
objectStateOverlayConfiguration
Methods
AddStateOverlay(ConfigurationManager, string)
Inserts appsettings.{state}.json into the configuration chain so that it overrides the base appsettings files but is itself overridden by environment variables and command-line args (twelve-factor precedence).
public static void AddStateOverlay(this ConfigurationManager configuration, string state)
Parameters
configurationConfigurationManagerThe application's configuration manager.
statestringThe state code from the STATE environment variable (e.g., "dc", "co").