namespace ZB.MOM.WW.ScadaBridge.DelmiaNotifier;
/// Root of appsettings.json; mirrors the ScadaBridge section only.
internal sealed class NotifierConfig
{
/// The ScadaBridge configuration section (base URLs, timeout, log path).
public ScadaBridgeSection ScadaBridge { get; set; } = new();
}
internal sealed class ScadaBridgeSection
{
/// Comma-separated failover list of base URLs (the method path is appended by the app).
public string? BaseUrls { get; set; }
/// Per-attempt HTTP timeout in seconds.
public int TimeoutSeconds { get; set; } = 30;
/// Optional diagnostic log file (relative to the exe); null/omitted → stderr only.
public string? LogPath { get; set; }
/// Optional inbound API key. SCADABRIDGE_API_KEY in the environment takes precedence; this is the file fallback (design 2026-06-26, relaxed 2026-09-02).
public string? ApiKey { get; set; }
}