I have a date and time in the code that I want to call a specific method. This date and time may also be repeated. I will run this on the IIS server if this is important.
Is there a way in C # for this?
Take a look at Quartz.net
I think you will probably have to break your code into some kind of service. Running a scheduled task is not what IIS is for.
Another tool is Visual Cron. I used this in a production environment and it works great! http://www.visualcron.com/
Timer, ElapsedEventHandler , .
Source: https://habr.com/ru/post/1665146/More articles:@ ngrx / store-devtools for production mode - angularHow to list scheduled tasks in C # - c #Efficient way to calculate discrete convolution “product” - arraysC # - a list of scheduled tasks for a specific user with the TaskSchedular class - c #Как получить список запланированных задач с помощью С#? - c#RxJS extension. Observed class with operators - javascriptchain abbreviations-actions and abbreviation-promise-middleware - reduxHow to convert MySQL TIMESTAMP to a date in PHP - phpPHP gets letters between two letters - phpWhere to initialize the MaxMind IP database for use with Django middleware - pythonAll Articles