C# Configuration Providers | JWT Authentication: Build a Library with me - VI

Опубликовано: 29 Март 2026
на канале: Code with Saar
728
15

Configuration providers read configuration data using a variety of configuration sources. Common ones includes: Settings files, such as appsettings.json, Environment variables, Command-line arguments, In-memory .NET objects...

Cheat-sheet

Refer to: https://github.com/xiaomi7732/CodeWit...

Quiz

What are the 3 steps to use a configuration provider?
What is the section separator for environment variables provider? What is it for a user-secrets provider?
When multiple configuration providers sets the same value, which one wins?
Does the name of the json settings on the dev box have to be named `appsettings.Development.json` & why?

Chapters

00:00 Intro
01:00 What is a configuration provider
02:28 Json File configuration provider - The basics
05:42 Json File configuration provider - 1 for Debug, 1 for Release
07:03 Environment Variables configuration provider
10:53 User-Secrets configuration provider
13:22 In-Memory configuration provider
14:35 Configuration providers in ASP.NET Core