I am trying to get acquanited with NServiceBus 5 using its own dependency injection container, and with SimpleInjector, which is our container of choice.
There is a way to tell NServiceBus to inject the
IBus Bus {get;set;}
property into all ASP.NET MVC ApiControllers (or somewhere else) using a custom NServiceBusControllerActivator and NServiceBusDependencyResolverAdapter.
However, we want to use SimpleInjector, and don't have an MVC application, and we don't want to inject the Bus into the controllers directly.
The controllers should be light-weight, so the logic is inside of "services", which in turn call Bus.Send(message).
How would you accomplish injecting the Bus property using SimpleInjector?
I know that people have tried configuring SImpleInjector with NServiceBus but they just don't work together.