0

My first plan for the service project and the way the client (who is an IT professional) told me to make it was inside a windows service. After reading up, I understand that you should never use thread.sleep for long periods of time, you should also not user timers in services and windows task scheduler is buggy at best. I ask here for anyone with experience in what way they would approach this issue, sorry if I explain badly, I am not too good at that.

I was asked to make a service that checks as RSS feed periodically to see if a backup was successful or not, if it wasn't then the service sends an email. The problem I have is that in order to stop the service spamming send email and also the service only needs to check if backup failed once every 2 hours or so, both issues involve pausing the service for a extended amount of time which I am struggling with.

Sorry again if it was explained badly, but any help or a point in the right direction would be great.

Sergey Berezovskiy
  • 215,927
  • 33
  • 392
  • 421

0 Answers0