public SessionFactory(SessionFactoryEventListeners eventListeners) { _eventListeners = eventListeners; }
//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); }