DEV Community

Fadi Sowan
Fadi Sowan

Posted on

c# Task Runner Or cron job?

#c

Hello, I have c# web project i need to run in background in task scheduler or how i can switch my project to webservice

Top comments (2)

Collapse
 
dariojavierrick profile image
Dario Javier Rick

There are many ways to do that, i suggest you to think first about the whole architecture of the system. Maybe you should create an independent application only for cron jobs, instead of just adding "cron code" in your current web application.
Eather way, i suggest you to take a look at hangfire.io/

Collapse
 
arsam31 profile image
Hafiz Arsam Rahmaan

yes hangfire is the best option