R
Roland
Hi,
I have written a Windows Service with a Timer (System).
The Interval is set to 60000 (60 seconds) for testing.
In the Timer1_Elapsed event I execute a task.
In this case I have to read a text file, draw data from a SQL server,
and send it all out in an email every day at the same time.
Problem is that the elapsed event fires anywhere from 1 time to 40
times per interval. Subsequently, my task runs n times.
Is it possible to have it fire only once?
Or, stop it from firing until the next interval?
Thank you!
Roland
I have written a Windows Service with a Timer (System).
The Interval is set to 60000 (60 seconds) for testing.
In the Timer1_Elapsed event I execute a task.
In this case I have to read a text file, draw data from a SQL server,
and send it all out in an email every day at the same time.
Problem is that the elapsed event fires anywhere from 1 time to 40
times per interval. Subsequently, my task runs n times.
Is it possible to have it fire only once?
Or, stop it from firing until the next interval?
Thank you!
Roland