Unity Lifetime Managers for WCF

Drew and I were having fun getting NHibernate working with WCF and Unity. I had built upon my brethren’s Jimmy’s code from this article to making a session per request. I had let Drew borrow the code, but forgot to mention that he would need to make his services per request. So, Drew and I talked and we upped the ante and created LifetimeManager objects for the contexts in WCF. He has a good description of it so I want hold you here any longer. Fun stuff and comes with a test client for playing with the different contexts. Go check it out here.


This Code for Rent