diff options
Diffstat (limited to 'Main')
-rw-r--r-- | Main/Startup.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Main/Startup.cs b/Main/Startup.cs index c1e4a10..b98b596 100644 --- a/Main/Startup.cs +++ b/Main/Startup.cs @@ -10,6 +10,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
using Hangfire;
+using Hangfire.MySql.Core;
using Hangfire.MemoryStorage;
using Classes;
@@ -31,10 +32,10 @@ namespace Server { });
services.AddDbContext<DatabaseContext>(options => {
- options.UseMySQL(Configuration.GetConnectionString("Aggregator"));
+ options.UseMySQL(Configuration.GetConnectionString("Storage"));
});
- services.AddHangfire(options => options.UseMemoryStorage());
+ services.AddHangfire(options => options.UseStorage(new MySqlStorage(Configuration.GetConnectionString("Storage"))));
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env) {
|