NServiceBus/NServiceBus — pull request #204 by remogloor (2012-02-28 21:35:29+00:00)
Title: Hint how to fix NinjectObjectBuilder

Without this check public properties with a none public setter are considered as valid targets for property injection even if Ninject is configured to inject only public members. This ends in a null reference in Ninject.

NOTE: I didn't test this code. I'm just giving here a hint how to fix the problem due to a bug report on the Ninject project. I leave verification and adjustment of the unit tests to the NServiceBus maintainers.

Related information:
http://tech.groups.yahoo.com/group/nservicebus/message/12853
http://stackoverflow.com/questions/9484789/nservicebus-objectbuilder-ninject-critical-bug