scheduled service task...

  • Thread starter Thread starter Aerodyne
  • Start date Start date
A

Aerodyne

Hi all,

I need a C# windows service to run every few days or so (say every 10
days)... the service starts up automatically w/ WinXP.

What would be the best option to use, System.Timers or System.Threading
& how would I get it to run & start over every 10 days; as in the
number of cycles to sleep or schedule it?


TIA
 
Personally I dont think windows services should be used for scheduling
events. That is what the task schedular is for. You should always use the
task schedular if you can as it is fully featured, tested, and already
running. Leaving you own service running but inactive for 10 days at a time
is just a waste of resources.

HTH

Ciaran O'Donnell
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top