如何在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.