Skip to Content
Customizing ASP.NET Core 6.0 - Second Edition
book

Customizing ASP.NET Core 6.0 - Second Edition

by Jürgen Gutsch
December 2021
Intermediate to advanced
204 pages
3h 5m
English
Packt Publishing
Content preview from Customizing ASP.NET Core 6.0 - Second Edition

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:

Figure 5.1 – The ASP.NET Core architecture

Figure 5.1 – The ASP.NET Core architecture

Technical requirements

To follow the descriptions in this chapter, you will ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Customizing ASP.NET Core 5.0

Customizing ASP.NET Core 5.0

Jürgen Gutsch
ASP.NET Core and Vue.js

ASP.NET Core and Vue.js

Devlin Basilan Duldulao
Mastering ASP.NET Web API

Mastering ASP.NET Web API

Mithun Pattankar, Malendra Hurbuns

Publisher Resources

ISBN: 9781803233604Supplemental Content