Instance UserSecretsId and BlurHash for 1376 x 768
This commit is contained in:
@ -7,22 +7,22 @@ public class AppSettings
|
||||
{
|
||||
|
||||
public string Company { init; get; }
|
||||
public string ComparePathsFile { init; get; }
|
||||
public string CopyTo { init; get; }
|
||||
public int MaxDegreeOfParallelism { init; get; }
|
||||
public int MaxValue { init; get; }
|
||||
public string MoveTo { init; get; }
|
||||
public string WorkingDirectoryName { init; get; }
|
||||
|
||||
[JsonConstructor]
|
||||
public AppSettings(string company,
|
||||
string comparePathsFile,
|
||||
string copyTo,
|
||||
int maxDegreeOfParallelism,
|
||||
int maxValue,
|
||||
string moveTo,
|
||||
string workingDirectoryName)
|
||||
{
|
||||
Company = company;
|
||||
ComparePathsFile = comparePathsFile;
|
||||
CopyTo = copyTo;
|
||||
MaxDegreeOfParallelism = maxDegreeOfParallelism;
|
||||
MaxValue = maxValue;
|
||||
MoveTo = moveTo;
|
||||
WorkingDirectoryName = workingDirectoryName;
|
||||
}
|
||||
|
||||
|
@ -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