Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top