summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/BackgroundService.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-05-07 22:41:37 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-05-07 22:41:37 -0400
commita500812e88ac5a8acdd9732963e6fae95c0a73e6 (patch)
tree9f36571698b14ab4d898385d7bb14998efd30836 /src/SMAPI.Web/BackgroundService.cs
parentc58d01d0cf45d6f5c7f75281cb6270afc68272db (diff)
downloadSMAPI-a500812e88ac5a8acdd9732963e6fae95c0a73e6.tar.gz
SMAPI-a500812e88ac5a8acdd9732963e6fae95c0a73e6.tar.bz2
SMAPI-a500812e88ac5a8acdd9732963e6fae95c0a73e6.zip
update web project to .NET Core 3.1
Diffstat (limited to 'src/SMAPI.Web/BackgroundService.cs')
-rw-r--r--src/SMAPI.Web/BackgroundService.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SMAPI.Web/BackgroundService.cs b/src/SMAPI.Web/BackgroundService.cs
index ee7a60f3..275622fe 100644
--- a/src/SMAPI.Web/BackgroundService.cs
+++ b/src/SMAPI.Web/BackgroundService.cs
@@ -1,4 +1,5 @@
using System;
+using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Threading.Tasks;
using Hangfire;
@@ -36,7 +37,9 @@ namespace StardewModdingAPI.Web
/// <summary>Construct an instance.</summary>
/// <param name="wikiCache">The cache in which to store wiki metadata.</param>
/// <param name="modCache">The cache in which to store mod data.</param>
- public BackgroundService(IWikiCacheRepository wikiCache, IModCacheRepository modCache)
+ /// <param name="hangfireStorage">The Hangfire storage implementation.</param>
+ [SuppressMessage("ReSharper", "UnusedParameter.Local", Justification = "The Hangfire reference forces it to initialize first, since it's needed by the background service.")]
+ public BackgroundService(IWikiCacheRepository wikiCache, IModCacheRepository modCache, JobStorage hangfireStorage)
{
BackgroundService.WikiCache = wikiCache;
BackgroundService.ModCache = modCache;