Rami Naidu

Rami Naidu

  • NA
  • 26
  • 793

Execute Timer Object with Threads in Service c#

Jan 23 2018 6:53 AM
I have to write a windows service. My requirement is as below.
I will get multiple frequency list dynamically for example 1 sec, 1 min, 5 min.
I have a method DoWork() in my windows service which will actually processes my core logic.
I don't need to wait for the response of the DoWork() method. So i have to run this using Thread.
DoWork() method should get executed for every 1 sec, 1 min and 5 min and each execution should be in an independent thread.
Can anyone provide an example for this? or any suggestion on how to do this.

Answers (1)