Adding a recurring hangfire job to an ASP.NET MVC application

1.1k Views Asked by At

I installed Hangfire successfully to my ASP.NET Core MVC application. I see that it added all of the tables to my database and I am able to access the Dashboard.

I need to figure out where in my code I should place the Hangfire code for a recurring job that will run every 30 minutes. Basically, every 30 minutes call

 _notificationRepository.GetNotifications()
         .Where(n => n.NotificationDate = DateTime.Now() 
            && n.CreatedBy == currentLoggedInUser)
0

There are 0 best solutions below