C# Windows Service Intermittent Method Call

Posted by Goober on Stack Overflow See other posts from Stack Overflow or by Goober
Published on 2010-04-16T15:39:25Z Indexed on 2010/04/16 16:03 UTC
Read the original article Hit count: 226

Filed under:
|
|

Scenario

I have a C# Windows Service that essentially subscribes to some events and if anything is triggered by the events, it carries out a few tasks.

The Thing...

....is that these events are monitoring processes, which I need to restart at certain times of the day.

Question

What's the best way I can go about performing this task at an exact time?

Thoughts so far are:

1)To use a timer that checks what time it is every few minutes. 2)Something that isn't a timer and doesn't suck as an implementation.

Help greatly appreciated.

© Stack Overflow or respective owner

Related posts about c#

Related posts about windows-services