public ISession GetSessionFrom(string sessionFactoryConfigPath, INwContext userContext) { var sess = GetSessionFromInternal(sessionFactoryConfigPath, null /*new NwAuditInterceptor(userContext)*/); //sess.GetSessionImplementation().Listeners.PreUpdateEventListeners = new IPreUpdateEventListener[] { new UpdateModifiedPreUpdateListener(userContext) }; return(sess); }
public ManagerViewBase(ISession session, INwContext userContext) { this._session = session; this.UserContext = userContext; }
public ISession GetSessionFrom(string sessionFactoryConfigPath, INwContext userContext) { var sess = GetSessionFromInternal(sessionFactoryConfigPath, null /*new NwAuditInterceptor(userContext)*/); //sess.GetSessionImplementation().Listeners.PreUpdateEventListeners = new IPreUpdateEventListener[] { new UpdateModifiedPreUpdateListener(userContext) }; return sess; }