Instance UserSecretsId and BlurHash for 1376 x 768
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user