Disable and re-enable a dynamic System.Timers.Timer
Posted on 2016-11-21
We have a windows service that creates several timers dynamically.
They execute every 20 seconds. sometimes this is enough time to do the processing, sometimes not.
So, we would like to be able to disable the timer, then re-enable it after processing has finished.
I tried creating a global list of timers and adding each timer to the list, then setting the properties, but this did not work.
All input is greatly appreciated.