在WCF里面,有三种方式来添加behavior:
ServiceBehavior | EndpointBehavior | ContractBehavior | OperationBehavior | |
通过代码方式添加 | | | | |
通过Attribute的方式 | | | | |
通过配置的方式 | | | | |
1、ServiceBehavior
2、EndpointBehavior
3、ContractBehavior