开发者

Running timer every one minute in Windows Service for 24 hours?

开发者 https://www.devze.com 2023-01-29 08:33 出处:网络
I have a timer clocking every one minute inC# window Service. And, This pc is running 24 hours and never shut down. My workflow is that user will set the time for my service to run some processes. eg.

I have a timer clocking every one minute in C# window Service. And, This pc is running 24 hours and never shut down. My workflow is that user will set the time for my service to run some processes. eg. he set 14:20. So, When my timer hit 14:20, I run some sql functions. Will it be any impact on performance If i run the timer like that for 24 hours? Is there any be开发者_如何转开发tter way?


You could use something like Quartz.NET: http://quartznet.sourceforge.net/

0

精彩评论

暂无评论...
验证码 换一张
取 消