Due to tons of bad experience with using DI containers in the past we’re thinking about a poor man’s solution using factories. That’s all good and easy so far, except when it comes to integration with NServiceBus to create the message handlers.
As I understand currently. I would need to build a custom implementation of ContainerDefinition and ending up building my own IContainer implementation which will connect NServiceBus with our handler factories.
Is this something you would consider feasible to do, or do you have experience/reasons against this approach?
If it’s a feasible way: Is my understanding of how to achieve this correct?