NHibernate SessionFactory Thread safe Issue
So here is the problem. I have a common class library that holds all the repositories, domain and mapping files so the library can be reused within other web beased applications. Now within this class library there is a peiece of code that allows itself to create a session factory to be used in its repositories. Code looks something like this. private static ISessionFactory sessionFactory; private static Configuration configuration; public static Configuration Configuration() { if (configuration == null) { configuration = new Configuration().Configure(); } return configuration; } private