I want to write a windows service in wcf. After searching a lot, I found only tutorials on writing a web service in wcf, and not in a Windows service.
Can I provide a link to any tutorial that explains how to write a Windows service in WCF
Windows services are executable. WCF applications are typically web services that are displayed through a URI. You can host a WCF application in a Windows service, and not vice versa.
Windows #, . Windows WCF , System.ServiceModel.ServiceHost, WCF OnStart() .
System.ServiceModel.ServiceHost
OnStart()
. ... WCF (dll), (IIS, Windows)., , Windows, (WCF) ( Windows)
: , WCF, Windows, , , .
Create your WCF service as usual, create a Windows service, and then use it ServiceHostto install the WCF service on your Windows service yourself. See this MSDN page for more information on self-service WCF services.
ServiceHost
Source: https://habr.com/ru/post/1722984/More articles:How to repair Resharper? - resharperadvanced media center - mediacenterCharacter stripe before period If file name is prefixed in Bash - bashGZIP JSON AJAX response text is empty - jsonУдаление конечной запятой из CSV-данных - c#Google Wave Python tutorial - nothing happens - pythonHow can you enter the current user into the apache scope? - securityProblem converting a Delphi form to Lazarus - resourcesScan documents for macro and replace macro text? - c #Download 3D Object in Silverlight 3/4 - silverlightAll Articles