使用 Ninject 2.0 配置 Masstransit 2.0.0.5
可能在这里很愚蠢..但已经晚了:)
我正在尝试将 MassTransit 与 Ninject 一起使用。我知道人们对 Ninject 和 MT 的喜爱度没有那么高,但无论如何我都想继续下去……也许最终会提供帮助。
到目前为止,我发现的示例似乎要求使用 MassTransit.NinjectIntegration 中的基类 MassTransitModuleBase;
然而在 2.0.0.5 中这并没有出现——这有改变吗?有什么建议吗?
Probably being dumb here.. but its getting late :)
I am trying to use MassTransit with Ninject. I know there isnt as much love for Ninject with MT but I want to continue regardless.. and maybe help out evntualy.
Examples I have found so far appear to require that base class MassTransitModuleBase is used from MassTransit.NinjectIntegration;
However in 2.0.0.5 this doesnt appear - has this changed? Any recommendations?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它们可能仍然是 2.0 之前的旧示例。 MT 2.0 已更新,将容器从核心中剔除。事实上,在 2.0 中,您可以在没有容器的情况下使用它来启动并启动。
其中一个示例的出纳部分 https:// github.com/MassTransit/MassTransit/tree/master/src/Samples/Starbucks/Starbucks.Cashier,使用 NInject。理想情况下,这可以让你更进一步。如果没有,请随时在邮件列表 https://groups.google 上发帖。 com/forum/#!forum/masstransit-discuss。
They likely are still old, pre-2.0 examples. 2.0 of MT has been updated to take containers out of the core. In fact, with 2.0 you can use it without a container to get you up and started.
The Cashier part of one of the samples, https://github.com/MassTransit/MassTransit/tree/master/src/Samples/Starbucks/Starbucks.Cashier, uses NInject. Ideally this can get you moving forward a little bit more. If not, feel free to post on the mailing list https://groups.google.com/forum/#!forum/masstransit-discuss.