Configuration

Settings merged from files, secrets, environment variables and the command line.

What is Configuration?

Configuration combines settings from appsettings.json, environment-specific files, user secrets, environment variables and the command line, with later sources winning. Read it through builder.Configuration.

var pageSize = builder.Configuration.GetValue<int>("Recipes:PageSize");
var connection = builder.Configuration.GetConnectionString("Recipes");

Level: Apprentice · More ASP.NET Core terms at this level

Updated