In a window service, can we have 2 timers, where one runs every 24 hours and other every 30 seconds???
The one that runs every 24 hours does one function and other sends an email every 30 seconds????
thanks!!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That is possible, use two Timer objects from the System.Timers namespace.
You can define the interval time in milliseconds and at the interval eventhandler you can define a method to execute