After creating a WCF service, the next step was to host it so that the client applications can consume it. This is known as WCF service hosting. A WCF Service can be hosted by using any of the four ways given below:
After you create the WCF service, the next step is to host the service, making sure that the client app can use it. This is also known as WCF service hosting. WCF services can be managed using either of the following 4 methods
IIS Hosting -IIS stands for Internet information Services. Its working model was similar to that of the ASP. NET while hosting a WCF service. The best feature of IIS hosting is, the service activation is processed automatically. IIS hosting also offers process health monitoring, idle shutdown, process recycling, and many more features to facilitate A WCF service hosting.
self-hosting -When a WCF service was hosted in a managed application, it was known as self-hosting. It requires a developer to write the requisite coding for ServiceHost initialization. In Self-hosting, a WCF service can is hosted in a variety of applications like Console application, Windows form, etc.
Was Hosting -Hosting a WCF service in Windows Activation Service (were) is the most advantageous because of its featu Res such as process recycling, idle time management, common configuration system, and support for HTTP, TCP, etc.
Windows Service Hosting -for local system clients, it's best to host WCF Service as a window service and this I s known as Window Service Hosting. All the versions of Windows support this type of hosting and here, the Service control Manager can control the process Lif Ecycle of the WCF service.
IIS hosted: Internet Information Service, which works like ASP. NET when hosting a WCF service. The best feature of IIS hosting is that service activation is handled automatically. IIS hosting also provides process security monitoring, idle hang-up, process multiplexing, and many other features to facilitate WCF service hosting.
Self-hosting: When a WCF service is hosted on a managed application, it is called self-hosted. This requires developers to write the necessary code for service-managed initialization. In self-hosting, WCF services can be hosted on many applications. such as console applications, WinForm applications, etc.
Was managed: hosting a WCF service on the Windows Activation Service is most advantageous because it includes the following features: process reuse, idle time management, public configuration system, and support for HTTP and TCP
Windows Service hosting: hosting a WCF service as a Windows service is the best way to host a local system client. All versions of the Windows operating system support this type of hosting, and the Service Control Manager can control the life cycle of the WCF service's processes.
Wcf-hosting WCF Service