IIS WCF service hosting vs Windows Service

后端 未结 7 1876
没有蜡笔的小新
没有蜡笔的小新 2020-11-27 13:07

We developed a WCF service and we\'re looking to deploy it. Our clients will be using it with basicHttpBinding but our internal team will be using it with

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 13:33

    Although there is selected answer here, I will allow myself to post a Q/A thread link.

    How to configure WCF service from code when hosted in IIS?

    What you will find in my answer there (and the link in it) is your fine control over the service host whether you load it in WService or in IIS.

    Upon service start you can interogate IIS what bindings does it have and create the appropriate endpoints. Look for IIs configuration throught Microsoft.Web.Administration namespace.

    Hope this helps a bit.

提交回复
热议问题