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.
精彩评论