Windows服务流程....继续 [英] Windows Service Process .... Continuing
本文介绍了Windows服务流程....继续的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经开发了一个Windows服务并安装了它,但问题是我希望服务一遍又一遍地执行一些操作。我想过使用OnContinue事件但它只在服务被手动暂停然后恢复时触发。当我在OnStart事件中输入代码时,服务无法启动,因为事件不返回任何内容。任何帮助?
Hi, I have developed a windows service and installed it but the thing is I want the service to perform some actions over and over again. I thought of using the OnContinue event but it fires only when the service has been manually paused and then resumed. When I let the code in on the OnStart event the service fails to start as the event doesn't return anything. Any help?
推荐答案
您可以使用计时器控制器再次自动撤销。
例如:循环5分钟1次>
请参阅可以帮助您
http://support.tronganh.com/viewtopic.php?t=332 [ ^ ]
You can use the timer controller to revoke automatically again.
For example: cycle 5minutes for 1 time
Please see may help you
http://support.tronganh.com/viewtopic.php?t=332[^]
我使用线程来解决问题。
I used threading to solve the problem.
这篇关于Windows服务流程....继续的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文