Skip to content

Base Template — Configuration

Principles

  • Prefer options pattern with validated IOptions<T> bindings
  • Connection strings live under ConnectionStrings with stable names shared across Application and tests
  • Secrets — Key Vault, user secrets in dev; never commit production secrets

Fork-layer alignment

Layer 3 repos must keep Application and Acceptance appsettings in sync for database catalogs, HangFire keys, Orleans store names, and Health Checks UI DB naming.

Use Extended template configuration alignment as the naming contract.

Environment overrides

Standard ASP.NET Core override:

Section__Subsection__Key=value
  • Runbook — pipeline and deployment config
  • Features — optional components that add config sections