wcf什么意思?关于wcf的实例教程

发布时间:2022-05-16 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了wcf什么意思?关于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. @R_304_654@ 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什么意思?关于wcf的实例教程的详细内容,更多请关注脚本宝典其它相关文章

脚本宝典总结

以上是脚本宝典为你收集整理的wcf什么意思?关于wcf的实例教程全部内容,希望文章能够帮你解决wcf什么意思?关于wcf的实例教程所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。