I am new to C # and coding in general. I am looking for an example / open source timer function that will be used to drop a basic method (e.g. email notifications) once a week at a specific time. After some research, I found that using a timer instead of a Windows service would be wise, as it would have a very small workload.
I found an API with several timers in CodePlex and Code Project, but I had problems working with examples due to my minimal knowledge of C #.
Does anyone know about a simple timer that I could use, is it newbie friendly and that also passed? Or is there an easier way to do this using System.Timers?
My ultimate goal is to have a timer that will start the method at 8:00 AM every Monday.
EDITOR: I believe that I should have been more detailed in my original Post. The reason I decided not to use the Windows Task Scheduler is because the method I'm calling is more complicated than just calling the Windows Task.
When the timer reaches the scheduled time, it starts a method that queries the database for items requiring maintenance for a certain period of time. Then, items that add them to the email that will be sent to this warehouse administrator will be cyclically moved.
If I'm not mistaken, is it impossible to do this using the Windows Task Scheduler?
Lando source share