configuration provider
A source of configuration values, such as appsettings.json, an environment file, environment variables or user secrets.
In more detail
Each provider reads its own source and contributes key-value pairs to one merged configuration. Providers are layered in order and the last one to supply a key wins, so deployment values override files without editing them.
Related terms
- IConfiguration — The .NET interface for reading configuration, a merged set of key-value strings from settings files, environment variables and other providers.
- configuration layering — Combining configuration from several providers in order, so later sources override earlier ones for the same key.
- user secrets — A .NET development tool that stores secrets for a project in your user profile, outside the project folder, so they never reach source control.
Taught in
- The Options Pattern: Strongly Typed Configuration — Modern .NET Core, C# & Enterprise Microservices
- Environment Layering and User Secrets — Modern .NET Core, C# & Enterprise Microservices