diff options
Diffstat (limited to 'Main')
-rw-r--r-- | Main/Startup.cs | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/Main/Startup.cs b/Main/Startup.cs index 3932568..980e110 100644 --- a/Main/Startup.cs +++ b/Main/Startup.cs @@ -46,21 +46,14 @@ namespace Main { }
app.UseDefaultFiles();
- app.UseStaticFiles(new StaticFileOptions {
- FileProvider = new PhysicalFileProvider(
- Path.Combine(
- Directory.GetParent(Directory.GetCurrentDirectory()).ToString(),
- "Frontend"
- )
- )
- });
+ app.UseStaticFiles();
app.UseHangfireServer();
app.UseHangfireDashboard();
- RecurringJob.AddOrUpdate(
- () => System.Console.WriteLine("Job has been run!"),
- Cron.Minutely()
+ RecurringJob.AddOrUpdate<AggregatorJob>(
+ x => x.Start(Configuration.GetConnectionString("Aggregator")),
+ Cron.HourInterval(3)
);
}
}
|