Print Page | Close Window

Detect Disconnection

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3233
Printed Date: 20-Apr-2024 at 1:05pm


Topic: Detect Disconnection
Posted By: sarmaad
Subject: Detect Disconnection
Date Posted: 24-Jan-2012 at 4:34pm
Hi,

Is there a way to detect a disconnection of the manager? (beside checking IsConnected)

thanks.



Replies:
Posted By: DenisK
Date Posted: 24-Jan-2012 at 7:45pm
Hi sarmaad,

Another option is to listen to the EntityManager.EntityServerError event.  http://drc.ideablade.com/xwiki/bin/view/Documentation/understand-entityserverexception - http://drc.ideablade.com/xwiki/bin/view/Documentation/understand-entityserverexception

See if this topic can help you find your answers as well.  http://drc.ideablade.com/xwiki/bin/view/Documentation/connect-entitymanager - http://drc.ideablade.com/xwiki/bin/view/Documentation/connect-entitymanager  

I might be able to help you more if you can elaborate why using the IsConnected property is not sufficient for your use case.



Print Page | Close Window