Is it possible to automate a method to run every x minutes/hours within a web application (server side of course)?
Simplified code:
public class Task
{
public string Name { get; set; }
public DateTime Deadline { get; set; }
...
}
The case: Each task has a deadline, I want to generate a mail if the deadline is approaching.
There are some answers, e.g. here with System.Threading or embed the functionality into a constructor. But how can I make sure, it will work for months without to be called?
Thank you!