Setup Hangfire in visual studio solution | Hello World Application

Step 1: Open Visual Studio and Execute below command in Package Manager

 Install-Package Hangfire After installation ensure highlighted reference added in project











Step 2: Make sure SQL Server/Express or any edition reachable from your application - as Hangfire create set of tables


















Step 3: class Startup | Initialize hangfire






Step 4: Register class|method that you want set as cron job








Step 5: Run the application, hit the index url to register method - watch d:\ after a minute



Comments

Popular posts from this blog

Difference between Parse/TryParse/ParseExact/TryParseExact

Benefits of Test Driven Development (TDD)

Version history of C#