Ian Warburton
Ian Warburton

Reputation: 15676

How is Hangfire able to be independent from ASP.net?

No Windows Service, no Windows Scheduler, no separate applications required.

Without these tools how is Hangfire able to run background tasks without being tied to ASP.net?

Upvotes: 0

Views: 1790

Answers (1)

odinserj
odinserj

Reputation: 964

Hangfire has no references to System.Web or other assemblies related to ASP.NET. All the Hangfire features including the dashboard (web UI) can be used in any application type like console application or Windows service. This is why it is independent of ASP.NET.

Hangfire handles all the risks of running background jobs inside ASP.NET applications, including application restarts (jobs are persisted) and unexpected process terminations (retry logic is used). So you can process background jobs without using Windows Services or separate applications.

Upvotes: 1

Related Questions