title: how to host 2 wcf services in 1 servicehost
body: <p>i'm working on a wcf project
  i have 1 service with 2 contracts (2 endpoints)
  and 1 service with 1 contract (1 endpoint)
  i want to make 1 single ServiceHost for both my services.
  i can make 2 host for 2 services but i need only 1 host.</p>
  
  <pre><code>ServiceHost myService =
              new ServiceHost(typeof(CustomerOrder),
              new Uri("net.tcp://localhost:9191/T1Flondor_Antal"));
  
              ServiceHost myService2 =
              new ServiceHost(typeof(ReportServiceCO),
              new Uri("net.tcp://localhost:9191/T1Flondor_Antal"));
  </code></pre>
  
  <p>and the config:</p>
  
  <pre><code>&lt;system.web&gt;
      &lt;compilation debug="true" /&gt;
    &lt;/system.web&gt;
    &lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;service name="T1Flondor_Antal.CustomerOrder"
       behaviorConfiguration="T1Flondor_Antal.MessageBehavior"&gt;
          &lt;endpoint address ="net.tcp://localhost:9191/T1Flondor_Antal/Customer"
         binding="netTcpBinding"
         contract="T1Flondor_Antal.ICustomer"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost"/&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
          &lt;endpoint address ="net.tcp://localhost:9191/T1Flondor_Antal/Order"
         binding="netTcpBinding"
         contract="T1Flondor_Antal.IOrder"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost"/&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
          &lt;endpoint address="mex"
         binding="mexTcpBinding"
         contract="IMetadataExchange"/&gt;
        &lt;/service&gt;
  
  
        &lt;service name="T1Flondor_Antal.ReportServiceCO"
       behaviorConfiguration="T1Flondor_Antal.MessageBehavior"&gt;
          &lt;endpoint address ="net.tcp://localhost:9191/T1Flondor_Antal/Report"
         binding="netTcpBinding"
         contract="T1Flondor_Antal.IReport"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost"/&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;   
          &lt;endpoint address="mex"
         binding="mexTcpBinding"
         contract="IMetadataExchange"/&gt;
        &lt;/service&gt;
  
  
  
      &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="T1Flondor_Antal.MessageBehavior"&gt;
            &lt;serviceMetadata /&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="False" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>