protected ISession BuildOrObtainSession() { return(factory.WithOptions() .AutoClose(IsAutoCloseEnabled()) .ConnectionReleaseMode(GetConnectionReleaseMode()) .OpenSession()); }
protected virtual ISession OpenSession(IInterceptor sessionLocalInterceptor) { return(Sfi.WithOptions().Interceptor(sessionLocalInterceptor).OpenSession()); }
protected virtual ISession OpenSession(IInterceptor sessionLocalInterceptor) { _lastOpenedSession = sessions.WithOptions().Interceptor(sessionLocalInterceptor).OpenSession(); _openedSessions.Add(_lastOpenedSession); return(_lastOpenedSession); }