In any case, to check if the NHibernate session has been deleted?
I have a wrapper class in a session that has its own implementation of Finalizer and IDispoable, however, if the session is deleted before I process it myself in my class, I get an ObjectDisposedException.
I really don't want my cleansing code to be
try {
...
}
catch (ObjectDisposedException) { }
But I am not sure of anything else. The Session.IsOpen and Session.IsActive properties do not seem to provide any reliable information so that I can confirm that the session has been deleted.
For a complete source, you can view it on Assembla .
source
share