Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anyone using Ninject 2.0 as the nServiceBus ObjectBuilder?

I have been trying to get nServiceBus to work with Ninject 2.0 as the underlying IoC container unsuccessfully. While I can achieve basic integration, I've had issues with "ghost" messages getting sent to the various subscribers. I used the Autofac implementation as a template of sorts, replacing the necessary pieces with Ninject-specific code. Further, I did have to create a custom heuristic to get auto-property injection to occur.

Regardless, the behavior I see is that a first message can be published and successfully read by a subscriber; however the next message that gets published results in the message being "received" three times.

So, I am wondering: Is anyone doing anything with Ninject as the nServiceBus ObjectBuilder? Or, has anyone seen and corrected this behavior during integration of the other IoC containers currently bundled with nServiceBus 2.0 (i.e. Windsor, StructureMap or Autofac).

Edit: I did take a look at this but it didn't look complete and I thought the heuristic for property injection should be a bit different.

like image 244
Peter Meyer Avatar asked Dec 13 '22 23:12

Peter Meyer


1 Answers

There is a thread discussing this on the nservicebus group, no solution yet though.

http://tech.groups.yahoo.com/group/nservicebus/message/6253

like image 64
Andreas Öhlund Avatar answered Dec 28 '22 15:12

Andreas Öhlund