aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()
+ );
}
}
}