Question

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.

Was it helpful?

Solution

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top