-
Book Overview & Buying
-
Table Of Contents
Clean Architecture with .NET
By :
Welcome to Chapter 9, where we continue building the Presentation layer of our Blazor Server application within a Clean Architecture solution. With the Domain, Application, and Infrastructure layers now in place, this chapter focuses on implementing the UI that exposes our use cases to users in a secure and maintainable way.
We will implement essential pages such as Product Catalog, Shopping Cart, Checkout, and Order Confirmation. Along the way, we introduce custom components, shared UI state containers, and ViewModels to ensure that presentation concerns remain properly separated from domain and application logic. Each page demonstrates how use cases are expressed through Razor components while preserving architectural boundaries.
We also strengthen the UI by applying role-based authorization policies and custom handlers. Rather than treating authorization as a secondary concern, we integrate it directly into our page and component...