Jack Thor
Jack Thor

Reputation: 1604

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.

Upvotes: 3

Views: 2174

Answers (1)

Reed Copsey
Reed Copsey

Reputation: 564821

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.

Upvotes: 2

Related Questions