-
Book Overview & Buying
-
Table Of Contents
Clean Architecture with .NET
By :
Welcome to Chapter 6, where we dive into the Infrastructure layer of our Clean Architecture using Project Odyssey. In this chapter, we focus on implementing infrastructure services and HTTP clients that enable the application to communicate with external systems and bring Application-layer use cases to life. This includes setting up a payment gateway service and integrating with an external payment API, allowing us to explore how infrastructure code supplies concrete details required for execution while remaining replaceable and isolated from core business logic.
We then turn our attention to dependency injection (DI) in .NET and how it applies within the Infrastructure layer. You'll see how services, HTTP clients, and supporting components are registered and wired together to support a flexible and composable architecture. Building on that foundation, we introduce the options pattern and show how it can be used to manage infrastructure configuration...