8 Configuring and Containerizing ASP.NET Core Projects
Join our book community on Discord
https://packt.link/EarlyAccess/
This chapter is about configuring and containerizing ASP.NET Core projects.
This chapter will cover the following topics:
- Configuring dependency services
- Configuring the HTTP pipeline
- Configuring options
- Containerizing ASP.NET Core projects
Configuring dependency services
Now that we have built a website that reads and writes to a database, we will review how registering dependency services and configuration of dependency injection work in more detail.
Introducing Dependency Injection
Dependency Injection (DI) is a design pattern used to implement Inversion of Control (IoC) to resolve dependencies in a program. Traditionally, the flow of control is dictated by your code, as it makes calls to reusable libraries or frameworks to use their functionality. IoC inverts this control so that the framework controls it instead.
For example, ASP.NET Core uses DI for...