开发者

Why is a ServiceBehavior an attribute of the Service Class and not the Contract?

开发者 https://www.devze.com 2023-01-24 16:12 出处:网络
I\'ve found plenty of places where people point out that a ServiceBehavior should be an attribute of the service class and not the contract, and this de开发者_StackOverflow社区finitely seems to be the

I've found plenty of places where people point out that a ServiceBehavior should be an attribute of the service class and not the contract, and this de开发者_StackOverflow社区finitely seems to be the case. Why is this?


Because it deals with implementation detail of the service and is not part of the contract.

Behaviours such as session, re-entry,... all deal with the implementation so that you could have the same contract (interface) but different implementations exposed at different endpoints.

0

精彩评论

暂无评论...
验证码 换一张
取 消