WCF Windows Service Hosting
We are going to see the hosting WCF service in Windows service. We will use same set of code used for hosting the WCF service in Console application to this. This is same as hosting the service in IIS without message activated. There is some advantage of hosting service in Windows service. The service will be hosted, when system starts Process life time of the service can be controlled by Service Control Manager for windows service All versions of Windows will support hosting WCF service. Step 1: Now let start create the WCF service, Open the Visual Studio 2008 and click New->Project and select Class Library from the template. Step 2: Add reference System.ServiceModel to the project. This is the core assembly used for creating the WCF service. Step 3: Next we can create the ISimpleCalulator interface as shown below. Add the Service and Operation Contract attribute as shown below. ISimpleCalculator.cs using System; using ...