您好,登錄后才能下訂單哦!
這期內容當中小編將會給大家帶來有關什么是wcf,文章內容豐富且以專業的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。
1. Create a windows service project
2. Add Reference to the assembly which contains the contract and its implementation.
3. Remove the Service1.cs, add a new Windows Service class and name it to CalculatorWindowsService
4. Override OnStart and OnStop method in WindowsServiceHost class
a. instantiate ServiceHost and open it in Onstart
b. Close the ServiceHost in Onstop
5. Create a Installer class to allow the exe to be installed as windows service
6. Instantiate a CalculatorWindowsService in the Program Main method.
7. Edit App.config and add configuration info for the service
8. Build Project and execute installutil.exe /i WindowsServiceHost.exe to install the service.
9. Open services.msc and start the service.
上述就是小編為大家分享的什么是wcf了,如果剛好有類似的疑惑,不妨參照上述分析進行理解。如果想知道更多相關知識,歡迎關注億速云行業資訊頻道。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。