private IUnitOfWorkEventHandler GetUnitOfWork(NHibernate.ISession session) { lock (RegisteredUoWs) { int hashCode = session.GetHashCode(); if (RegisteredUoWs.ContainsKey(hashCode)) { return(RegisteredUoWs[hashCode].UnitOfWork); } } return(null); }
public static IUnitOfWorkTracked GetUnitOfWorkTracked(NHibernate.ISession session) { lock (RegisteredUoWs) { int hashCode = session.GetHashCode(); if (RegisteredUoWs.ContainsKey(hashCode)) { return(RegisteredUoWs[hashCode].UnitOfWork); } } return(null); }