OpenInsightApplicationProgrammingInterface
This commit is contained in:
@ -24,6 +24,7 @@ public class AppSettings
|
||||
[Display(Name = "MonA Resource"), Required] public string MonAResource { get; set; }
|
||||
[Display(Name = "MonA Site"), Required] public string MonASite { get; set; }
|
||||
[Display(Name = "Notify Minimum"), Required] public int? NotifyMinimum { get; set; }
|
||||
[Display(Name = "OpenInsight Application Programming Interface"), Required] public string OpenInsightApplicationProgrammingInterface { get; set; }
|
||||
[Display(Name = "PostTo"), Required] public string PostTo { get; set; }
|
||||
[Display(Name = "Post to Every"), Required] public int? PostToEvery { get; set; }
|
||||
[Display(Name = "RootPassword"), Required] public string RootPassword { get; set; }
|
||||
@ -48,6 +49,8 @@ public class AppSettings
|
||||
throw new NullReferenceException(nameof(appSettings));
|
||||
if (appSettings.BuildNumber is null)
|
||||
throw new NullReferenceException(nameof(BuildNumber));
|
||||
if (appSettings.BuildSourceVersion is null)
|
||||
throw new NullReferenceException(nameof(BuildSourceVersion));
|
||||
if (appSettings.ClearLastScanServiceAfter is null)
|
||||
throw new NullReferenceException(nameof(ClearLastScanServiceAfter));
|
||||
if (appSettings.Company is null)
|
||||
@ -62,8 +65,6 @@ public class AppSettings
|
||||
throw new NullReferenceException(nameof(ExpectedScanLengthB));
|
||||
if (appSettings.FileShare is null)
|
||||
throw new NullReferenceException(nameof(FileShare));
|
||||
if (appSettings.BuildSourceVersion is null)
|
||||
throw new NullReferenceException(nameof(BuildSourceVersion));
|
||||
if (appSettings.IsDevelopment is null)
|
||||
throw new NullReferenceException(nameof(IsDevelopment));
|
||||
if (appSettings.IsStaging is null)
|
||||
@ -78,6 +79,8 @@ public class AppSettings
|
||||
throw new NullReferenceException(nameof(MonASite));
|
||||
if (appSettings.NotifyMinimum is null)
|
||||
throw new NullReferenceException(nameof(NotifyMinimum));
|
||||
if (appSettings.OpenInsightApplicationProgrammingInterface is null)
|
||||
throw new NullReferenceException(nameof(OpenInsightApplicationProgrammingInterface));
|
||||
if (appSettings.PostTo is null)
|
||||
throw new NullReferenceException(nameof(PostTo));
|
||||
if (appSettings.PostToEvery is null)
|
||||
@ -111,6 +114,7 @@ public class AppSettings
|
||||
appSettings.MonAResource,
|
||||
appSettings.MonASite,
|
||||
appSettings.NotifyMinimum.Value,
|
||||
appSettings.OpenInsightApplicationProgrammingInterface,
|
||||
appSettings.PostTo,
|
||||
appSettings.PostToEvery.Value,
|
||||
appSettings.RootPassword,
|
||||
|
Reference in New Issue
Block a user