使用 DryIoc 或 LightInject 实现 NServiceBus/MassTransit IContainer

Implementation of the NServiceBus/MassTransit IContainer with DryIoc or LightInject

我在我的大部分 .Net Web API 2+ 解决方案中使用了 DryIoc 和 LightInject。使用新架构,我更愿意为我的下一个 ESB 实现使用 NServiceBus 或 MassTransit。但是,我找不到任何有用的代码参考可以帮助我使用 DryIoc 或 LightInject 实现 NServiceBus/MassTransit IContainer。其他 IoC 对我来说不是一个选择,因为我公司的要求是只能从上述两者中进行选择。非常感谢社区的任何帮助。

this help?"If you have your own container that is not already supported by a NuGet package, you can create a plugin centering around the IContainer abstraction. Once this is created and registered, NServiceBus will use your custom container to look up its own dependencies."