title: Each contract has to be hosted in one ServiceHost?
body: <p>I want to expose two contracts in my server. The app config file of the service is:</p>
  
  <pre><code>&lt;services&gt;
        &lt;service name="Interface1Service"&gt;
          &lt;endpoint address="" binding ="customBinding" contract="Interface1"
                    bindingName="binding_Interface1" bindingConfiguration="CustomBinding_Interface1" name="epInterface1"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost" /&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
  
          &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
  
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="http://localhost:8733/Interface1/" /&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
        &lt;/service&gt;
  
        &lt;service name="Interface2Service"&gt;
          &lt;endpoint address="" binding ="customBinding" contract="Interface2"
                    bindingName="binding_Interface2" bindingConfiguration="CustomBinding_Interface1"
                    name="epInterface2Service"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost" /&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
  
          &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
  
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="http://localhost:8733/Interface2/" /&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
        &lt;/service&gt;
      &lt;/services&gt;
  </code></pre>
  
  <p>And in my console application to host the service I have:</p>
  
  <pre><code>ServiceHost miHost = new ServiceHost(typeof(Interface1Service));
  
      miHost.Open();
  
      ServiceHost miHost2 = new ServiceHost(typeof(Interface2Service));
      miHost2.Open();
  
      Console.ReadKey();
  
      miHost.Close();
      miHost2.Close();
  </code></pre>
  
  <p>My doubt if this is the correct way to expose the two services or there is any way to use only one serviceHost to do that.</p>
  
  <p>Because I have seen that is very common to have many contracts for related operations, such as one interface for modify product, other to modify persons, other for orders... etc.</p>
  
  <p>Thank you so much.</p>