From 8912f15d47909aa6f58612c13842d7846c185c49 Mon Sep 17 00:00:00 2001 From: Shukri Adams Date: Wed, 9 Oct 2024 15:03:42 +0200 Subject: [PATCH] renamed property --- src/Tetrifact.Core/ArchiveService.cs | 2 +- src/Tetrifact.Core/ISettings.cs | 2 +- src/Tetrifact.Core/Settings.cs | 4 ++-- src/Tetrifact.Web/Startup.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Tetrifact.Core/ArchiveService.cs b/src/Tetrifact.Core/ArchiveService.cs index 85fb0ad..2fc7012 100644 --- a/src/Tetrifact.Core/ArchiveService.cs +++ b/src/Tetrifact.Core/ArchiveService.cs @@ -300,7 +300,7 @@ private async Task ArchiveDotNetZip(string packageId, string archivePathTemp) { foreach (ManifestItem file in manifest.Files) { - ZipArchiveEntry zipEntry = archive.CreateEntry(file.Path, _settings.DownloadArchiveCompression); + ZipArchiveEntry zipEntry = archive.CreateEntry(file.Path, _settings.ArchiveCompressionLevel); using (Stream zipEntryStream = zipEntry.Open()) { diff --git a/src/Tetrifact.Core/ISettings.cs b/src/Tetrifact.Core/ISettings.cs index 6374382..b554344 100644 --- a/src/Tetrifact.Core/ISettings.cs +++ b/src/Tetrifact.Core/ISettings.cs @@ -133,7 +133,7 @@ public interface ISettings /// /// Zip compression for downloadable builds. Allowed values Optimal | Fastest | NoCompression | SmallestSize. /// - CompressionLevel DownloadArchiveCompression { get; set; } + CompressionLevel ArchiveCompressionLevel { get; set; } /// /// If true, package autoprune will run diff --git a/src/Tetrifact.Core/Settings.cs b/src/Tetrifact.Core/Settings.cs index f4c1d47..8522982 100644 --- a/src/Tetrifact.Core/Settings.cs +++ b/src/Tetrifact.Core/Settings.cs @@ -49,7 +49,7 @@ public class Settings : ISettings public bool AutoCreateArchiveOnPackageCreate { get; set; } - public CompressionLevel DownloadArchiveCompression { get; set; } + public CompressionLevel ArchiveCompressionLevel { get; set; } public bool PruneEnabled { get; set; } @@ -120,7 +120,7 @@ public Settings() this.AuthorizationLevel = AuthorizationLevel.None; this.CacheTimeout = 60 * 60; // 1 hour this.CleanCronMask = "0 0 * * *"; // once a day at midnight - this.DownloadArchiveCompression = CompressionLevel.Optimal; + this.ArchiveCompressionLevel = CompressionLevel.Optimal; this.StorageCompressionEnabled = false; this.LinkLockWaitTime = 1000; // 1 second this.ListPageSize = 20; diff --git a/src/Tetrifact.Web/Startup.cs b/src/Tetrifact.Web/Startup.cs index aec0eaf..420e0eb 100644 --- a/src/Tetrifact.Web/Startup.cs +++ b/src/Tetrifact.Web/Startup.cs @@ -177,7 +177,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerF Console.WriteLine($"Authorization level: {settings.AuthorizationLevel}"); Console.WriteLine($"Autocreate archive on package create: {settings.AutoCreateArchiveOnPackageCreate}"); Console.WriteLine($"Cache timeout: {settings.CacheTimeout}"); - Console.WriteLine($"Download archive compression: {settings.DownloadArchiveCompression}"); + Console.WriteLine($"Download archive compression: {settings.ArchiveCompressionLevel}"); Console.WriteLine($"Index tag list length: {settings.IndexTagListLength}"); Console.WriteLine($"Is storage compression enabled: {settings.StorageCompressionEnabled}"); Console.WriteLine($"Link lock wait time: {settings.LinkLockWaitTime}");