title: How can I discover current endpoints of my c# application programmatically?
body: <p>How can I code a c# sample for reading my Client endpoint configurations:</p>
  
  <pre><code>&lt;client&gt;
     &lt;endpoint address="http://mycoolserver/FinancialService.svc"
        binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IFinancialService"
        contract="IFinancialService" name="WSHttpBinding_IFinancialService"&gt;
        &lt;identity&gt;
           &lt;dns value="localhost" /&gt;
        &lt;/identity&gt;
     &lt;/endpoint&gt;
     &lt;endpoint address="http://mycoolserver/HumanResourcesService.svc"
        binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IHumanResourceService"
        contract="IHumanResourceService" name="WSHttpBinding_IHumanResourceService"&gt;
        &lt;identity&gt;
           &lt;dns value="localhost" /&gt;
        &lt;/identity&gt;
     &lt;/endpoint&gt;
  </code></pre>
  
  <p>And the goal is to obtain an array of endpoints address:</p>
  
  <pre><code>List&lt;string&gt; addresses = GetMyCurrentEndpoints();
  </code></pre>
  
  <p>As result we would have:</p>
  
  <pre><code>[0] http://mycoolserver/FinancialService.svc  
  [1] http://mycoolserver/HumanResourcesService.svc
  </code></pre>