<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Best way to detect loss of connection?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Best way to detect loss of connection?</description>
  <pubDate>Sat, 11 Apr 2026 15:33:48 -700</pubDate>
  <lastBuildDate>Thu, 11 Mar 2010 09:19:26 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1678</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Best way to detect loss of connection? : To determine whether you can immediately...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1678&amp;PID=6347#6347</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 1678<br /><strong>Posted:</strong> 11-Mar-2010 at 9:19am<br /><br />To determine whether you can immediately connect to a database use this EntityManager constructor:<DIV>&nbsp;</DIV><DIV>Syntax<BR>Visual Basic (Declaration)&nbsp;&nbsp; <BR>Public Function New( _<BR>&nbsp;&nbsp; ByVal shouldConnect As Boolean _<BR>)<BR>&nbsp;</DIV><DIV>Visual Basic (Usage) Copy Code <BR>Dim shouldConnect As Boolean<BR>&nbsp;<BR>Dim instance As EntityManager(shouldConnect)<BR>&nbsp;</DIV><DIV>C#&nbsp;&nbsp; <BR>public EntityManager( <BR>&nbsp;&nbsp; bool shouldConnect<BR>)<BR>&nbsp;</DIV><DIV>Parameters<BR>shouldConnect <BR>True if a connection to the EntityServer should be made.<BR>Exceptions<BR>Exception Description <BR>IdeaBlade.Core.IdeaBladeException Thrown for miscellaneous initialization failures <BR>EntityServerException Thrown for connection failures <BR>ArgumentException Thrown in a Silverlight application when BOS is not specified </DIV><DIV>&nbsp;</DIV><DIV>Once you have created an EntityManager, you can check the IsConnected property of the EntityManager:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;IsConnected&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Returns whether the EntityManager is currently connected to an EntityServer.</DIV><DIV>&nbsp;<BR></DIV>]]>
   </description>
   <pubDate>Thu, 11 Mar 2010 09:19:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1678&amp;PID=6347#6347</guid>
  </item> 
  <item>
   <title>Best way to detect loss of connection? : What&amp;#039;s the recommended way...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1678&amp;PID=6342#6342</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=705" rel="nofollow">chuckc</a><br /><strong>Subject:</strong> 1678<br /><strong>Posted:</strong> 10-Mar-2010 at 1:57pm<br /><br />What's the recommended way to detect absence or loss of a data connection?  <br /><br />I see a number of examples in the documentation dealing with saving and restoring cache contents, but they are all driven by user actions.  I'd like to recognize at application start-up that a database connection is not available and immediately restore from a saved cache file.  I'd also like to recognized when a connection has been lost during a session, and save cache contents to disk at that time.<br /><br />Thanks!]]>
   </description>
   <pubDate>Wed, 10 Mar 2010 13:57:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1678&amp;PID=6342#6342</guid>
  </item> 
 </channel>
</rss>