I am not using the nhibernate saga persistence and hence I do not need the NHibernateMessageModule.
So how do i remove it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to remove the module from the container before starting the bus, because afterwards it gets cached.
You can do this by calling .RunCustomAction() before .CreateBus().Start() and including your code in there.
Internally, the CastleWindsorBuilder does this:
Component.For(GetAllServiceTypesFor(concreteComponent)).ImplementedBy(concreteComponent);
So you might also need to remove the component for all the interfaces it is registered – meaning IMessageModule.