mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Change the server temp path
This commit is contained in:
parent
790f7cd7aa
commit
3f12422e01
@ -85,9 +85,12 @@ public class Startup
|
|||||||
services.AddSingleton<TarLog>();
|
services.AddSingleton<TarLog>();
|
||||||
services.AddAllSingleton<IHttpDownloader, SingleThreadedDownloader>();
|
services.AddAllSingleton<IHttpDownloader, SingleThreadedDownloader>();
|
||||||
services.AddDownloadDispatcher(useLoginDownloaders:false, useProxyCache:false);
|
services.AddDownloadDispatcher(useLoginDownloaders:false, useProxyCache:false);
|
||||||
var tempBase = KnownFolders.EntryPoint.Combine("temp");
|
|
||||||
services.AddTransient(s =>
|
services.AddTransient(s =>
|
||||||
new TemporaryFileManager(tempBase.Combine(Environment.ProcessId + "_" + Guid.NewGuid())));
|
{
|
||||||
|
var settings = s.GetRequiredService<AppSettings>();
|
||||||
|
return new TemporaryFileManager(settings.TempPath.Combine(Environment.ProcessId + "_" + Guid.NewGuid()));
|
||||||
|
});
|
||||||
|
|
||||||
services.AddAllSingleton<ITokenProvider<WabbajackApiState>, WabbajackApiTokenProvider>();
|
services.AddAllSingleton<ITokenProvider<WabbajackApiState>, WabbajackApiTokenProvider>();
|
||||||
services.AddAllSingleton<IResource, IResource<DownloadDispatcher>>(s => new Resource<DownloadDispatcher>("Downloads", 12));
|
services.AddAllSingleton<IResource, IResource<DownloadDispatcher>>(s => new Resource<DownloadDispatcher>("Downloads", 12));
|
||||||
services.AddAllSingleton<IResource, IResource<FileHashCache>>(s => new Resource<FileHashCache>("File Hashing", 12));
|
services.AddAllSingleton<IResource, IResource<FileHashCache>>(s => new Resource<FileHashCache>("File Hashing", 12));
|
||||||
|
Loading…
Reference in New Issue
Block a user