Difference between IOperationBehavior and IContractBehavior?

966 views Asked by At

I want to know what is difference between IOperationBehavior and IContractBehavior and what is special case when we can see difference between this two in development.

1

There are 1 answers

0
GSerjo On BEST ANSWER

A WCF service can has multiple contracts.

  • IServiceBehavior - applies to all contracts and can be applied thru the config file or the attribute
  • IContractBehavior - applies only to one contract and can be applied only thru the attribute