开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜