aboutsummaryrefslogtreecommitdiff
path: root/Main
diff options
context:
space:
mode:
authorAryadev Chavali <aryadevchavali1@gmail.com>2019-02-21 22:01:36 +0000
committerAryadev Chavali <aryadevchavali1@gmail.com>2019-02-21 22:01:36 +0000
commit59abc62c0727f4dee89c7251075263482fd2aa93 (patch)
treeeaba6825db9b36a07626843a02cbf9d2738f2336 /Main
parent9452a9788360e2bf3c5e0c36cfa0031e90bc0fe5 (diff)
downloadnewsaggregator-59abc62c0727f4dee89c7251075263482fd2aa93.tar.gz
newsaggregator-59abc62c0727f4dee89c7251075263482fd2aa93.tar.bz2
newsaggregator-59abc62c0727f4dee89c7251075263482fd2aa93.zip
Made simple recurring job
Diffstat (limited to 'Main')
-rw-r--r--Main/Startup.cs5
1 files changed, 5 insertions, 0 deletions
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()
+ );
}
}
}