What am I missing about WCF?

前端 未结 8 2397
萌比男神i
萌比男神i 2020-12-12 17:05

I\'ve been developing in MS technologies for longer than I care to remember at this stage. When .NET arrived on the scene I thought they hit the nail on the head and with ea

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 17:36

    Biggest advantage of using WCF from a programmer's point of view: separates the definition of exposed services (operations, contracts, etc.) from the protocol's specific details, unlike ASMX where you expose a class as a web service directly in the code using attributes. Using a real example of mine: we where able to easily switch the transport protocol between web services and named pipes, whatever suited better the deployment and performance needs, without changing a line of code.

提交回复
热议问题