天道酬勤,学无止境

session-per-request

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, etc. Since both Ninject and NHibernate have WCF support now, I want to keep things consistent by

2021-05-26 02:30:10    分类:问答    wcf   nhibernate   ninject   session-per-request