コード例 #1
0
 public SessionFactory(SessionFactoryEventListeners eventListeners)
 {
     _eventListeners = eventListeners;
 }
コード例 #2
0
        //public static void Initialize(ISessionStorage storage, IInterceptor interceptor)
        //{
        //    _sessionSource = storage;
        //    _sessionFactory = new SessionFactory(interceptor);
        //}

        public static void Initialize(ISessionStorage storage, SessionFactoryEventListeners eventListeners)
        {
            _sessionSource  = storage;
            _sessionFactory = new SessionFactory(eventListeners);
        }