Instance UserSecretsId and BlurHash for 1376 x 768

This commit is contained in:
2023-06-12 11:27:58 -07:00
parent 085dee358c
commit 1712de2952
20 changed files with 191 additions and 556 deletions

View File

@ -9,9 +9,9 @@ public class AppSettings
#nullable disable
public string Company { get; set; }
public string ComparePathsFile { get; set; }
public string CopyTo { get; set; }
public int? MaxDegreeOfParallelism { get; set; }
public int? MaxValue { get; set; }
public string MoveTo { get; set; }
public string WorkingDirectoryName { get; set; }
#nullable restore
@ -27,11 +27,13 @@ public class AppSettings
Models.AppSettings result;
if (appSettings?.MaxDegreeOfParallelism is null)
throw new NullReferenceException(nameof(appSettings.MaxDegreeOfParallelism));
if (appSettings?.MaxValue is null)
throw new NullReferenceException(nameof(appSettings.MaxValue));
result = new(
appSettings.Company,
appSettings.ComparePathsFile,
appSettings.CopyTo,
appSettings.MaxDegreeOfParallelism.Value,
appSettings.MaxValue.Value,
appSettings.MoveTo,
appSettings.WorkingDirectoryName
);
return result;