-
Book Overview & Buying
-
Table Of Contents
Clean Architecture with .NET
By :
To move composition from convention to structure, we introduce two core abstractions from ServiceComposition.NET
(available at https://github.com/cbcrouse/ServiceComposition.NET):
ServiceRegistrationPipelineServiceCompositionRoot<TPipeline>The ServiceRegistrationPipeline lives in Infrastructure. Its role is to define the foundational service registrations required by the system. Rather than executing registrations immediately inside a host, the pipeline represents an ordered definition of what must be registered. Database configuration, persistence, external integrations, and other core concerns are declared here in a consistent sequence.
The ServiceCompositionRoot<TPipeline> lives in the Presentation layer. It represents the composition boundary for a specific host. Each host defines its own composition root, supplying presentation-specific registrations while delegating foundational registrations to the pipeline. The composition root...