
This problem covers binding a configuration section to a typed settings class with the options pattern, and receiving those settings in a service through IOptions.
Read the full problemThis problem covers layering configuration from a base file, an environment specific file and environment variables, so each setting comes from the highest source that defines it.
Read the full problemThis problem covers adding validation attributes to an options class and checking them as the application starts, so a bad setting stops it with an error naming that setting.
Read the full problemThis problem covers layering the payment settings from files and environment variables, binding the nested gateway and retry sections to typed options, validating them at startup, and reading them in a service through IOptions.
Read the full problem