Table of Contents

Class StateOverlayConfiguration

Namespace
SEBT.Portal.Api.Startup
Assembly
SEBT.Portal.Api.dll

Adds the state-specific configuration overlay (appsettings.{state}.json) to the application's configuration chain.

public static class StateOverlayConfiguration
Inheritance
object
StateOverlayConfiguration

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

configuration ConfigurationManager

The application's configuration manager.

state string

The state code from the STATE environment variable (e.g., "dc", "co").