Can you host multiple WCF processes in a single windows service?

前端 未结 4 1002
耶瑟儿~
耶瑟儿~ 2020-12-30 16:32

I have a WCF process hosted in a windows service. I am wondering if I can safely have multiple WCF processes that do different things hosted in the same windows service. Do

4条回答
  •  一整个雨季
    2020-12-30 17:01

    Yes, you can. I am doing this exact thing in my project, hosting three separate WCF services inside my Windows service. Just make sure that each WCF endpoint, i.e., the address/binding/contract tuple, is unique.

提交回复
热议问题