多base address 的配置文件

<service behaviorConfiguration="MyServiceBehavior" name="Hello">

  
<endpoint

    
address="httpHello"

    binding
="basicHttpBinding"

    contract
="IHello" />

  
<endpoint

    
address="nettcpHello"

    binding
="netTcpBinding"

    contract
="IHello" />

  
<endpoint address="MEX" binding="mexHttpBinding" contract="IMetadataExchange" />

 

  
<host>

    
<baseAddresses>

      
<add baseAddress="http://localhost:8080/"/>

      
<add baseAddress="net.tcp://localhost:8090/"/>

    
</baseAddresses>

  
</host>

 

</service>

相关文章:

  • 2022-01-16
  • 2022-12-23
  • 2021-10-21
  • 2021-05-31
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
猜你喜欢
  • 2022-12-23
  • 2021-05-20
  • 2021-11-01
  • 2021-11-22
  • 2022-02-12
  • 2022-01-22
  • 2022-12-23
相关资源
相似解决方案