title: NHibernate Session ObjectDisposedException
body: <p>Is there anyway to verify if a Session has been disposed of by NHibernate?</p>
  
  <p>I have a wrapper class on Session that has it's own Finalizer and IDispoable implementation however if the Session gets disposed before I handle it myself in my class I end up receiving an ObjectDisposedException.</p>
  
  <p>I really don't wish to wrap my clean up code with</p>
  
  <pre><code>try {
  ...
  }
  catch (ObjectDisposedException) { }
  </code></pre>
  
  <p>But I'm not really sure of any other way. The Session.IsOpen and Session.IsActive properties do not seem to offer any reliable information for me to acknowledge the session has been disposed of.</p>
  
  <p>For full source you can view it on <a href="http://code.assembla.com/MarisicDotNet/subversion/nodes/StructuredWeb/StructuredWeb/Repository/NHibernateDataAccess/Conversation/Conversation.cs" rel="nofollow noreferrer">Assembla</a>.</p>