Contract Types
The different types of message exchange patterns (mep) that contacts can take : Request -reply,One - way or duplex.
Request-reply services are the default type of operation contract in Windows Communication Foundation (WCF). Clients make call to service operations and wait for a response from the service.
To create request-reply service contract, define your service contract, and apply the OperationContractAttribute class to each operation, as shown in the following sample code.
[ServiceContract(Namespace="http://Microsoft.ServiceModel.Samples")]
public interface ICalculator
{
[OperationContract]
double Add(double n1, double n2);
}