67 lines
1.7 KiB
C#
67 lines
1.7 KiB
C#
namespace ZA.CoreService.ESBCertificateManager.Models;
|
|
|
|
public sealed class AppSettings
|
|
{
|
|
public string EnvironmentCode { get; set; } = "TEST";
|
|
|
|
public string LogDirectory { get; set; } = "Logs";
|
|
|
|
public DatabaseSettings Database { get; set; } = new();
|
|
|
|
public RuntimeSettings Runtime { get; set; } = new();
|
|
|
|
public AlwaysEncryptedSettings AlwaysEncrypted { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// Wenn aktiv, erscheint der Demo-UNC-Pfad auch ohne SQL-Update in der Zielliste.
|
|
/// </summary>
|
|
public DemoSettings Demo { get; set; } = new();
|
|
}
|
|
|
|
public sealed class DemoSettings
|
|
{
|
|
public bool Enabled { get; set; } = true;
|
|
|
|
public string TargetDirectory { get; set; } =
|
|
DemoCertificatePath.Directory;
|
|
|
|
public string TargetFileName { get; set; } =
|
|
DemoCertificatePath.FileName;
|
|
|
|
public string ContainerName { get; set; } =
|
|
"ct-ZADBService";
|
|
|
|
public string DisplayName { get; set; } =
|
|
"DE / Demo ZADBService";
|
|
|
|
public string SonicConnectionName { get; set; } =
|
|
"DE-Test";
|
|
}
|
|
|
|
public sealed class DatabaseSettings
|
|
{
|
|
public string ConnectionString { get; set; } = string.Empty;
|
|
}
|
|
|
|
public sealed class RuntimeSettings
|
|
{
|
|
public string JavaExecutablePath { get; set; } =
|
|
@"Runtime\bin\java.exe";
|
|
|
|
public string SonicClientLibraryPath { get; set; } =
|
|
@"Runtime\SonicClient\lib";
|
|
|
|
public bool SetupCompleted { get; set; }
|
|
}
|
|
|
|
public sealed class AlwaysEncryptedSettings
|
|
{
|
|
public string CertificateThumbprint { get; set; } =
|
|
string.Empty;
|
|
|
|
public string StoreName { get; set; } =
|
|
"My";
|
|
|
|
public string StoreLocation { get; set; } =
|
|
"CurrentUser";
|
|
} |