-
Book Overview & Buying
-
Table Of Contents
Clean Architecture with .NET
By :
In this chapter, we established the foundational structure of the Presentation layer for a Clean Architecture–based Blazor Server application. Rather than jumping directly into UI features, we treated the Presentation layer as a deliberate composition boundary—responsible for application startup, configuration, framework integration, and external concerns such as identity.
We began by restructuring how the application is initialized, separating service composition from the entry point. By introducing a dedicated service composition root and clarifying the role of Program.cs as an execution and wiring boundary, we made startup behavior explicit without changing how the application runs. This structure keeps composition readable, intentional, and resilient as the system grows.
From there, we integrated MudBlazor to establish a modern UI foundation, focusing on setup and consistency rather than component depth. This ensured the Presentation layer was ready to support...