How might I schedule a C# Windows Service to perform a task daily?
Posted
by ctrlalt3nd
on Stack Overflow
See other posts from Stack Overflow
or by ctrlalt3nd
Published on 2009-02-02T15:21:07Z
Indexed on
2010/03/28
21:23 UTC
Read the original article
Hit count: 255
I have a service written in C# (.NET 1.1) and want it to perform some cleanup actions at midnight every night. I have to keep all code contained within the service, so what's the easiest way to accomplish this? Use of Thread.Sleep()
and checking for the time rolling over?
© Stack Overflow or respective owner