Best way to do a task looping in Windows Service
|
3
2
|
I have a method that send some SMS to our customers that look like below:
So, I have some issues:
How I can achieve this? I thought about using |
||||||||||||||||
|
|
6
|
You should have an async method that accepts a
You can call this method when your application starts and
|
||||||||||||||||||||
|
|
0
|
Sample Worker Class that I have used in Windows Services. It supports stopping in a 'clean' way by using a lock. You just have to add your code in DoWork, set your timer in the StartTimerAndWork method (in milliseconds), and use this class in your service.
|
|||
Your Answer
Post as a guest
|
Name
Email
|
By posting your answer, you agree to the privacy policy and terms of service.
Not the answer you're looking for? Browse other questions tagged c# multithreading windows-services task-parallel-library async-await or ask your own question.
| Technology | Life / Arts | Culture / Recreation | Science | Other | ||
|---|---|---|---|---|---|---|