7. Hosting

A SERVICE HOST IS AN OPERATING SYSTEM process responsible for the lifetime and context of a WCF service. The service host, or just “host,” is responsible for starting and stopping the WCF service and providing some basic management functions for controlling it. Other than that, the host knows very little about the WCF service that runs in its memory space.

Any operating system process can be a service host. Both IIS and Windows Process Activation Services (WAS) have the built-in infrastructure that makes this easy. Together with ASP.NET, they provide a common service hosting environment. In addition to IIS and WAS, you can host a WCF service in a Managed Windows Service (NT Service) that starts and stops with the operating system. ...

Get Essential Windows Communication Foundation: For .NET Framework 3.5 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.