Summary
Inside Program.cs
, you are able to use app configuration inside the lambdas of the configuration methods, provided you have access to the WebHostBuilderContext
. This way, you can use all the configuration you like to configure WebHostBuilder
.
In the next chapter, we are going to have a look at the hosting details. You will learn about different hosting models and how to host an ASP.NET Core application in different ways.