session-per-request implementation for WCF, NHibernate, and Ninject
问题 I am trying to implement a session-per-request model in my WCF application, and I have read countless documents on this topic, but looks like there is not a complete demonstration of this. I actually came across some very useful articles such as this one: NHibernate's ISession, scoped for a single WCF-call but these are all from the old days when NHibernate and Ninject did not have WCF specific implementations, therefore they achieved what I need by implementing their custom service providers