The timer function fires properly for an hour, after some time it stops automatocally This is my code for timer declaration.
private static System.Timers.