feat(delmia-notifier): config loader + SCADABRIDGE_API_KEY resolution
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
namespace ZB.MOM.WW.ScadaBridge.DelmiaNotifier;
|
||||
|
||||
/// <summary>Root of <c>appsettings.json</c>; mirrors the <c>ScadaBridge</c> section only.</summary>
|
||||
internal sealed class NotifierConfig
|
||||
{
|
||||
public ScadaBridgeSection ScadaBridge { get; set; } = new();
|
||||
}
|
||||
|
||||
internal sealed class ScadaBridgeSection
|
||||
{
|
||||
/// <summary>Comma-separated failover list of base URLs (the method path is appended by the app).</summary>
|
||||
public string? BaseUrls { get; set; }
|
||||
|
||||
/// <summary>Per-attempt HTTP timeout in seconds.</summary>
|
||||
public int TimeoutSeconds { get; set; } = 30;
|
||||
|
||||
/// <summary>Optional diagnostic log file (relative to the exe); null/omitted → stderr only.</summary>
|
||||
public string? LogPath { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user