In the case of the example "uNHAddins.Examples.SessionManagement":
What is the best way to get a reference to the "ISessionFactoryImplementor" or "ISessionFactory"? (would there always be "one and only one"?) Essentially, I want to forcibly close any connections if the user is closing the data file... >From "Program.cs" in SessionManagement.WCF.Host, I see the following: var nhConfigurator = new DefaultSessionFactoryConfigurationProvider(); var sfp = new SessionFactoryProvider(nhConfigurator); container.Register(Component.For<ISessionFactoryProvider>().Instance(sfp)); container.Register(Component.For<ISessionWrapper>().ImplementedBy<SessionWrapper>()); container.Register(Component.For<ISessionFactory>().Instance(sfp.GetFactory(null))); Is this a way to accomplish what I'm looking to do? What are the reasons for such diversity in IoC and configuration? Thanks, Eric -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
