Create an interceptor for the session. Allow to override the default for creating the intercetor
Exemple #1
0
 private static ISession OpenSessionWithScope(ISessionScope scope, ISessionFactory sessionFactory)
 {
     lock (sessionFactory)
     {
         return(scope.OpenSession(sessionFactory, InterceptorFactory.Create()));
     }
 }
Exemple #2
0
 private static ISession OpenSession(ISessionFactory sessionFactory)
 {
     lock (sessionFactory)
     {
         return(sessionFactory.OpenSession(InterceptorFactory.Create()));
     }
 }