Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a Service Contract in WCF?

What exactly is a service contract in WCF? I can't seem to be able to find a clear definition of what is it. If you have have a link that defines what it is that would be great.

like image 978
Jack Thor Avatar asked Dec 15 '25 16:12

Jack Thor


1 Answers

A "Service Contract" is an interface which has been marked with the ServiceContractAttribute. This is the API that gets "pushed" across the wire in WCF, and the main way to define the contract that is used for communication between the client and service.

For details, see Designing Service Contracts on MSDN.

like image 154
Reed Copsey Avatar answered Dec 17 '25 08:12

Reed Copsey



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!