diff options
Diffstat (limited to 'Main/Startup.cs')
-rw-r--r-- | Main/Startup.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Main/Startup.cs b/Main/Startup.cs index 7f615fd..c1e4a10 100644 --- a/Main/Startup.cs +++ b/Main/Startup.cs @@ -9,6 +9,8 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
+using Hangfire;
+using Hangfire.MemoryStorage;
using Classes;
using Database;
@@ -29,8 +31,10 @@ namespace Server { });
services.AddDbContext<DatabaseContext>(options => {
- options.UseMySQL(Configuration.GetConnectionString("connectionString"));
+ options.UseMySQL(Configuration.GetConnectionString("Aggregator"));
});
+
+ services.AddHangfire(options => options.UseMemoryStorage());
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env) {
@@ -49,6 +53,9 @@ namespace Server { "Website"
)
);
+
+ app.UseHangfireDashboard();
+ app.UseHangfireServer();
}
}
}
|