-
Book Overview & Buying
-
Table Of Contents
Clean Architecture with .NET
By :
Before introducing pages, UI components, or authentication, the Presentation layer needs to be prepared as a proper composition boundary. This work is largely structural. It focuses on how the application starts, how configuration is loaded, and how infrastructure and presentation concerns are wired together at the edge of the system.
In this section, we refactor the default Blazor startup layout to make composition explicit and intentional. We introduce a dedicated class responsible for service registration, take control over how configuration is loaded, and clarify the role of Program.cs as the application's entry point rather than its composition root. These changes do not alter the runtime behavior of the application, but they establish a structure that scales cleanly as the system grows.
In earlier chapters, we established a clear convention for registering infrastructure dependencies through...