0

I am new in hangfire. I want to create a regular cron job which triggers in every 30 minutes. In documentation i couldn't find a good example. For example this is my method :

public void DoSomething()
    {
        using (EfDbContext _db = new EfDbContext())
        {
            _db.Jobs.add(new CronJob
            {
               status = "job fires",
               date = DateTime.Now
            });
        }
    }

And i want to trigger it in every 30 minutes. How to do it in asp.net mvc? (using hangfire).

1 Answers1

0

just make a console application which is trigger your controller/action , bind it to Windows Task Schedule this is best and fast way to do it trust me.

Zergling
  • 526
  • 2
  • 7