As already stated both System.Threading.Timer
and System.Timers.Timer
will work. The big difference between the two is that System.Threading.Timer
is a wrapper arround the other one.
System.Threading.Timer
will have more exception handling while
System.Timers.Timer
will swallow all the exceptions.
This gave me big problems in the past so I would always use 'System.Threading.Timer' and still handle your exceptions very well.