title: WCF CustomBinding Configuration
body: <p>I've written a custom binding class that inherits from CustomBinding.
  My custom class overrides the BuildChannelFactory method and uses a custom ChannelFactory to create a custom channel.</p>
  
  <p>I'm having difficulties using the custom binding class in the WCF client.
  I am able to use my custom binding class if I configure it in code:</p>
  
  <pre><code>Binding myCustomBinding = new MyCustomBinding();
  
  ChannelFactory&lt;ICustomerService&gt; factory = 
     new ChannelFactory&lt;ICustomerService&gt;(myCustomBinding, 
          new EndpointAddress("http://localhost:8001/MyWcfServices/CustomerService/"));
  
  ICustomerService serviceProxy = factory.CreateChannel();
  serviceProxy.GetData(5);
  </code></pre>
  
  <p>My problem is I don't know how to configure it in the App.config file.
  Is it a customBinding element, or a bindingExtension element? Is it something else?</p>