Using NHibernate interceptor together with Ninject to retrieve the logged in user
问题 I was reading this article and found it quite interesting (thanks @Aaronaught). Was what came closest to solve my problem. The only detail is that in my case I would use the NHibernate interceptor, but an exception is thrown An unhandled exception of type 'System.StackOverflowException' occurred in System.Core.dll Code Session factory: public class SessionFactoryBuilder : IProvider { private ISessionFactory _sessionFactory; private readonly Configuration _configuration; public