title: Is ReliableSession.InactivityTimeout is good practice to detect errors in wcf?
body: <p>Recently i asked to implement a wcf service.
  One of the problems i am facing is how to detect network failure and raise fault exception,</p>
  
  <p>after some research , i found that is it possible to set receive time out property to max value,
  and the inactivity to some time span,
  basically it works, but my question  is am i doing good practice while i doing so?</p>
  
  <p>or anybody have a better way to detect  unexpected network failure</p>
  
  <p>I am using tcp binding option</p>
  
  <pre><code>netTcpBind.ReceiveTimeout = TimeSpan.MaxValue;
          netTcpBind.CloseTimeout = TimeSpan.MaxValue;
          netTcpBind.SendTimeout = TimeSpan.MaxValue;
          netTcpBind.ReliableSession.Enabled = true;
          netTcpBind.ReliableSession.InactivityTimeout = new TimeSpan(0,2,0);
  </code></pre>