Transactional DI: Adapter and Handler Optimization
Look into a module to switch its composition root over to using the DI containers.
Driver adapters
The driver adapters had been using the various variables we had created in the first two sections, but those variables no longer exist. Every driver needs to be updated to accept the container instead.
We will leave the existing driver functions alone and will create new functions that take the container instead. For example, the RegisterDomainEventHandlers()
function will be replaced with a new function with the following signature:
Get hands-on with 1400+ tech skills courses.