Creating the service interface layer
In the previous section, we created a WCF project by using the WCF Service Library template. In this section, we will create the service interface layer contracts.
As two sample files have already been created for us, we will try to re-use them as much as possible. Then we will start customizing these two files to create the service contracts.
Creating the service interfaces
To create the
service interfaces, we need to open the
IService1.cs file and do the following:
- Change its namespace from
- Right-click on the class name IService1, select Refactor | Rename, and then change the interface name from IService1 to IProductService as shown in the following ...