Multiple interfaces from a single WCF service?

前端 未结 5 2072
情书的邮戳
情书的邮戳 2020-12-05 02:44

Can a single WCF service offer multiple interfaces, and if so how would you express this in app.config?

I mean one services offering several Interfaces

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-05 03:08

    With WCF, you can:

    • have one service implementation class that implements multiple service interfaces
    • have one service implementation class exposed through multiple endpoints, e.g. one service endpoint using BasicHttpBinding for maximum interoperability and another endpoint using NetTcpBinding for maximum performance (with WCF clients).

提交回复
热议问题