title: wcf connection timeout retry
body: <p>Below is my WCF connection code. If the connection timesout i would like to retry 3 times. how can i do this?
  thanks
  damo</p>
  
  <p><strong>C# Code</strong></p>
  
  <pre><code>                // Get the status from the client machine
                  ServiceReference1.JobsClient Client = new ServiceReference1.JobsClient();
                  Client.Endpoint.Address = new System.ServiceModel.EndpointAddress(ConfigurationManager.AppSettings["ServicePath"]);
                  FactoryAuditEventNotification.ServiceReference1.ReturnClass SystemStatus_Result;
                  SystemStatus_Result = Client.SystemState(System.Environment.MachineName);
  
                  if (SystemStatus_Result.ErrorCode &lt; 0) // Error, set the textbox state
                      this.textBoxState.BeginInvoke((MethodInvoker)(() =&gt; this.textBoxState.Text = "Unknown"));
                  else
                      this.textBoxState.BeginInvoke((MethodInvoker)(() =&gt; this.textBoxState.Text = "Success"));
  </code></pre>