diff --git a/Wabbajack.Server/Startup.cs b/Wabbajack.Server/Startup.cs index 98542330..510555e4 100644 --- a/Wabbajack.Server/Startup.cs +++ b/Wabbajack.Server/Startup.cs @@ -85,9 +85,12 @@ public class Startup services.AddSingleton(); services.AddAllSingleton(); services.AddDownloadDispatcher(useLoginDownloaders:false, useProxyCache:false); - var tempBase = KnownFolders.EntryPoint.Combine("temp"); services.AddTransient(s => - new TemporaryFileManager(tempBase.Combine(Environment.ProcessId + "_" + Guid.NewGuid()))); + { + var settings = s.GetRequiredService(); + return new TemporaryFileManager(settings.TempPath.Combine(Environment.ProcessId + "_" + Guid.NewGuid())); + }); + services.AddAllSingleton, WabbajackApiTokenProvider>(); services.AddAllSingleton>(s => new Resource("Downloads", 12)); services.AddAllSingleton>(s => new Resource("File Hashing", 12));