46 lines
2.1 KiB
C#
46 lines
2.1 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json;
|
|
|
|
namespace OI.Metrology.Archive.Models.Binder;
|
|
|
|
public class AppSettings
|
|
{
|
|
|
|
[Display(Name = "Api Logging Content Types"), Required] public string ApiLoggingContentTypes { get; set; }
|
|
[Display(Name = "Api Logging Path Prefixes"), Required] public string ApiLoggingPathPrefixes { get; set; }
|
|
[Display(Name = "Api Log Path"), Required] public string ApiLogPath { get; set; }
|
|
[Display(Name = "Attachment Path"), Required] public string AttachmentPath { get; set; }
|
|
[Display(Name = "Build Number"), Required] public string BuildNumber { get; set; }
|
|
[Display(Name = "Company"), Required] public string Company { get; set; }
|
|
[Display(Name = "Connection String"), Required] public string ConnectionString { get; set; }
|
|
[Display(Name = "Git Commit Seven"), Required] public string GitCommitSeven { get; set; }
|
|
[Display(Name = "Inbound Api Allowed IP List"), Required] public string InboundApiAllowedIPList { get; set; }
|
|
[Display(Name = "MonA Ressource"), Required] public string MonARessource { get; set; }
|
|
[Display(Name = "OI Export Path"), Required] public string OIExportPath { get; set; }
|
|
[Display(Name = "URLs"), Required] public string URLs { get; set; }
|
|
[Display(Name = "Working Directory Name"), Required] public string WorkingDirectoryName { get; set; }
|
|
|
|
public AppSettings()
|
|
{
|
|
ApiLoggingContentTypes = string.Empty;
|
|
ApiLoggingPathPrefixes = string.Empty;
|
|
ApiLogPath = string.Empty;
|
|
AttachmentPath = string.Empty;
|
|
BuildNumber = string.Empty;
|
|
Company = string.Empty;
|
|
ConnectionString = string.Empty;
|
|
GitCommitSeven = string.Empty;
|
|
InboundApiAllowedIPList = string.Empty;
|
|
MonARessource = string.Empty;
|
|
OIExportPath = string.Empty;
|
|
URLs = string.Empty;
|
|
WorkingDirectoryName = string.Empty;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
string result = JsonSerializer.Serialize(this, new JsonSerializerOptions() { WriteIndented = true });
|
|
return result;
|
|
}
|
|
|
|
} |