title: Closing WCF connection
body: <p>We are using WCF service</p>
  
  <p>on the client side we are planning to explicitly close the connection
  It seems there are more then one way of closing </p>
  
  <p>Sample1:
  In the finally block of the WCF service consumption use </p>
  
  <pre><code>if (client.State == CommunicationState.Faulted)
  {
    client.Abort();
  }
  client.Close();
  </code></pre>
  
  <p>Since if the service is in fault state we will not be able to call close()</p>
  
  <p>Sample2:</p>
  
  <pre><code>using(ClientProxy proxy = new ClientProxy())
  {   
    //call your service methods
  }
  </code></pre>
  
  <p>in sample2 i am not sure what will happen if the service is in fault state, will it throw error closing the connection?</p>