Design Considerations

It takes two to make an accident.

—Francis Scott Fitzgerald, “The Great Gatsby”

This chapter covers a few cross-cutting concerns of all web applications such as global configuration data, patterns for dealing with errors and exceptions, the design of the controller classes, and modern features like dependency injection to pass data across layers of code. In the design of core components of an ASP.NET Core application, the native Dependency Injection (DI) infrastructure plays a fundamental role.

Without further ado, let’s start taking a deeper look under the hood of the native DI infrastructure of the ASP.NET Core framework.

The Dependency Injection Infrastructure

DI is a development pattern widely used to make ...

Get Programming ASP.NET Core, First edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.