Hosting a WCF Service in a Windows Service

Hosting a WCF Service in a user application relies on the user starting and stopping the service and not logging off. A better solution is to host a WCF service in a Windows service. This way, you can configure the Windows service to run automatically when Windows starts, but an administrator can still stop and restart the service if required.



The exercises in this section require that you have Administrator access to your computer. If you do not have this level of access, you will not be able to install, start, and stop Windows services.

In the exercises in this section, you will create a Windows ...

Get Microsoft® Windows® Communication Foundation Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.