示例#1
0
 protected ISession BuildOrObtainSession()
 {
     return(factory.WithOptions()
            .AutoClose(IsAutoCloseEnabled())
            .ConnectionReleaseMode(GetConnectionReleaseMode())
            .OpenSession());
 }
示例#2
0
 protected virtual ISession OpenSession(IInterceptor sessionLocalInterceptor)
 {
     return(Sfi.WithOptions().Interceptor(sessionLocalInterceptor).OpenSession());
 }
示例#3
0
 protected virtual ISession OpenSession(IInterceptor sessionLocalInterceptor)
 {
     _lastOpenedSession = sessions.WithOptions().Interceptor(sessionLocalInterceptor).OpenSession();
     _openedSessions.Add(_lastOpenedSession);
     return(_lastOpenedSession);
 }