Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between IOperationBehavior and IContractBehavior?

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.

like image 577
dotnetstep Avatar asked Mar 15 '26 17:03

dotnetstep


1 Answers

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
like image 145
GSerjo Avatar answered Mar 18 '26 05:03

GSerjo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!