Added SQLite storage for Hangfire

pull/1425/head
Jamie.Rees 8 years ago
parent aab9194cf5
commit 2c4ef05af1

@ -6,7 +6,7 @@
<ItemGroup>
<PackageReference Include="EasyCrypto" Version="3.3.2" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="1.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="1.1.2" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.2" />
<PackageReference Include="System.Security.Claims" Version="4.3.0" />
</ItemGroup>

@ -24,6 +24,7 @@
<PackageReference Include="Hangfire.AspNetCore" Version="1.6.12" />
<PackageReference Include="Hangfire.MemoryStorage.Core" Version="1.4.0" />
<PackageReference Include="Hangfire.RecurringJobExtensions" Version="1.1.6" />
<PackageReference Include="Hangfire.SQLite.Core" Version="1.0.2" />
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="1.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" />

@ -5,6 +5,7 @@ using AutoMapper;
using AutoMapper.EquivalencyExpression;
using Hangfire;
using Hangfire.MemoryStorage;
using Hangfire.SQLite;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
@ -77,7 +78,8 @@ namespace Ombi
services.AddHangfire(x =>
{
x.UseMemoryStorage(new MemoryStorageOptions());
x.UseSQLiteStorage("Data Source=Ombi.db;");
//x.UseMemoryStorage(new MemoryStorageOptions());
x.UseActivator(new IoCJobActivator(services.BuildServiceProvider()));
});

Loading…
Cancel
Save