I’m currently looking at the Orchard source code and can’t find where the NHibernate Session Factory been registered into the AutoFac. Anybody can help with that?
Thank you
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.
The correct answer is
ShellContainerFactory.In
ShellContainerFactory, it will scan all fromIDependencyinherited classes and register them. TheSessionFactoryHolderis inherited fromIDependencyso it will be registered automatically.