From 59abc62c0727f4dee89c7251075263482fd2aa93 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 21 Feb 2019 22:01:36 +0000 Subject: Made simple recurring job --- Main/Startup.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Main/Startup.cs b/Main/Startup.cs index 6474fcc..3932568 100644 --- a/Main/Startup.cs +++ b/Main/Startup.cs @@ -57,6 +57,11 @@ namespace Main { app.UseHangfireServer(); app.UseHangfireDashboard(); + + RecurringJob.AddOrUpdate( + () => System.Console.WriteLine("Job has been run!"), + Cron.Minutely() + ); } } } -- cgit v1.2.3-13-gbd6f