Hi,
I'v tried to ask questions before about how to trap a connection broken/lost exception from the Connections object on NHibernate ISession object but haven't really got any good answers.
I use the NHibernate Session Manager found in the Best Practises Basic example. This is found on the
www.codeproject.com.
I want to notify the user of my application when the "SQL" server connection is lost or broken, and when its working.
The IDbConnection.State object holds this information, but when I disconnect my computer from the network, its still reports that the ConnectionState is Open, not Broken as it should.
Is there any other way to check the connection state.
Regards
Svein Thomas