title: Setting WCF Endpoint address at runtime?
body: <p>If I have the following:</p>
  
  <pre><code>WSHttpBinding binding = new WSHttpBinding(); 
  EndpointAddress endpoint = new EndpointAddress(new Uri("http://xxx:pppp/MyService")); 
  
  MyServiceClient client = new MyServiceClient(binding, endpoint); 
  </code></pre>
  
  <p>How can  I set the endpoint bindingConfiguration? If it helps my app.config is set to:</p>
  
  <pre><code>&lt;endpoint address="http://xxx:pppp/Design_Time_Addresses/WcfServiceLibrary/ManagementService/"
            binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IManagementService"
            contract="ServiceReference.IManagementService"&gt;
          &lt;identity&gt;
                &lt;dns value="localhost" /&gt;
          &lt;/identity&gt;
  &lt;/endpoint&gt;
  </code></pre>
  
  <p>However I'm looking to let the user configure this before running the client.</p>
  
  <p>Thanks</p>