如何在c#中安排具有特定时间间隔的Windows服务? [英] How to schedule a windows service with specific time interval in c#?

查看:116
本文介绍了如何在c#中安排具有特定时间间隔的Windows服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在c#中安排具有特定时间间隔的Windows服务?我正在使用C#2.0 AND VS 2005.我希望在timer tick事件下设置它。在设置的时间间隔(例如10000毫秒)后,服务将继续重新启动。完成示例过程后,必须重新启用计时器。

How to schedule a windows service with specific time interval in c#? I am using C#2.0 AND VS 2005. I wish to set it under timer tick event. The service will keep restarting after the time interval set (say 10000 ms). When sample process is done has to re enable the timer.

推荐答案

安排Windows服务。 [ ^ ]


这篇关于如何在c#中安排具有特定时间间隔的Windows服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆