Different Ways to Host a WCF Service in a Self-Hosted Application
You can host your WCF service in several ways such as in:
- A custom managed application
Hosting your WCF service in a self-hosted application requires a small amount of additional code and the necessary WCF configuration. You can use the project templates in Visual Studio to develop one of the following applications:
A simple executable file that runs on the command line.
A Windows service that runs constantly or on schedule.
A client application in Windows Forms or Windows Presentation Foundation (WPF), which enables you to provide additional functionality such as callbacks.
For more information about hosting WCF services, see Hosting Services.