Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Clean Architecture with .NET
  • Table Of Contents Toc
Clean Architecture with .NET

Clean Architecture with .NET

By : Casey Crouse, Steve "Ardalis" Smith
1 (1)
close
close
Clean Architecture with .NET

Clean Architecture with .NET

1 (1)
By: Casey Crouse, Steve "Ardalis" Smith

Overview of this book

Learn how to apply Clean Architecture in real-world .NET applications with Azure in this guide. Designed around an e-commerce project - Project Odyssey, you’ll design and build every architectural layer, from core domain logic and application orchestration to infrastructure and presentation. This book equips you to apply DDD, CQRS, MediatR, and dependency injection, enabling loosely coupled, testable systems. You’ll build reusable and modular code structures that scale with your application’s complexity and learn how to persist data using EF Core with a code-first approach, managing schema evolution with migrations while keeping infrastructure concerns isolated from your domain logic. Learn how to develop secure systems by integrating Azure External ID, Azure Key Vault, and application-level authentication and authorization. Gain practical experience with Blazor Server, Razor components, and MudBlazor UI, all integrated within a layered architecture. Learn to enforce business logic boundaries, reduce boilerplate with generic request handlers, and use real-world use cases like payment processing and shopping cart management. Whether you're new to Clean Architecture or scaling up enterprise solutions, this book provides the patterns, tools, and mindset to succeed. *Email sign-up and proof of purchase required
Table of Contents (23 chapters)
close
close
Lock Free Chapter
1
Part 1: Introduction and Overview of Clean Architecture
4
Part 2: Design and Implementation of Clean Architecture
12
Part 3: Advanced Topics in Clean Architecture
17
Part 4: Additional Topics and Resources
21
Other Books You May Enjoy
22
Index

10

Improving Clean Architecture in .NET with Structured Service Composition

Applications built to last inevitably grow in complexity. As features accumulate, new integrations are added, and infrastructure concerns grow; service registration expands alongside the system. What begins as a clear and compact Program.cs can gradually evolve into a dense collection of registrations spread across extension methods, infrastructure projects, and presentation startup code.

Over time, this accumulation makes it harder to answer a straightforward question: What dependencies are registered, in what order, and why?

In small applications, this may not feel like a problem. Everything lives in one host, and the startup file appears manageable. But clean architecture enables something more powerful: the ability to host the same application core in multiple environments.

A single application might eventually support:

  • A Web API
  • A Blazor application
  • A console utility
  • Background workers
  • Azure Functions

Even...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Clean Architecture with .NET
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon