I have a date and time in code, that i want to invoke a specific method. This date and time also might be recurrence. I will run this on IIS server if that's matter.
Is there a way in C# to do it?
I have a date and time in code, that i want to invoke a specific method. This date and time also might be recurrence. I will run this on IIS server if that's matter.
Is there a way in C# to do it?
Take a look at Quartz.net
I think you would probably need to break your code out into a service of some kind. Running scheduled task isn't what IIS is meant for.
Another tool is Visual Cron. I have used this in a production environment and it works great! http://www.visualcron.com/
You might want a Timer, the ElapsedEventHandler can call functions for you, and they can be set up to reoccur.