Chapter 5: Configuring WebHostBuilder
When reading Chapter 4, Configuring and Customizing HTTPS with Kestrel, you might have asked yourself a question:
How can I use user secrets to pass the password to the HTTPS configuration?
You might even be wondering whether you can fetch the configuration from within Program.cs
.
In this chapter, we're going to answer these questions through the following topic:
- Re-examining
WebHostBuilderContext
The topic in this chapter refers to the hosting layer of the ASP.NET Core architecture: