Pregunta

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.

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top