From 3f12422e01f9d8089095b1686cf04324cfe467b5 Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Tue, 7 Jun 2022 22:00:16 -0600 Subject: [PATCH] Change the server temp path --- Wabbajack.Server/Startup.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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));