WCF Hosting
- IIS Hosting
- Self Hosting
- WAS Hosting
- Windows Service Hosting
IIS Hosting
- Advantage of hosting a service in IIS
- Automatically launches the host process when it gets first client request.
- Uses features of IIS like Process Recycling, Idle shutdown, Process health monitoring, Message based activation
Disadvantage
- Only Supports HTTP Protocol
Tips : While creating service , choose Http as location in VS new project.
Self Hosting
We make a Host service, keep it running and another application as client which consumes service. It can be any application like console or win form.
Windows Activation Hosting
It is available with windows vista and above. It is available with IIS7.0 and supports Http, TCP and named Pipes.
Hosting WCF in Activation service takes many advantages such as process recycling, isolation, idle time management and common configuration system. WAS hosted service can be created using following steps Enable WCF for non-http protocols Create WAS hosted service Enable different binding to the hosted service
No comments:
Post a Comment