Dependency Injection
Services can be conditionally injected, or conditionally decorate existing services.
AddTransient / AddScoped
Decorate
The decorator pattern injects the existing implementation of a service into the constructor of the decorator service
Last updated
Was this helpful?