private static ISession OpenSessionWithScope(ISessionScope scope, ISessionFactory sessionFactory) { lock (sessionFactory) { return(scope.OpenSession(sessionFactory, InterceptorFactory.Create())); } }
private static ISession OpenSession(ISessionFactory sessionFactory) { lock (sessionFactory) { return(sessionFactory.OpenSession(InterceptorFactory.Create())); } }