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 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.