feat(inbound-api): Log global for method scripts, central ScriptLog rows when traced (D4/D5)

This commit is contained in:
Joseph Doherty
2026-09-09 11:39:25 -04:00
parent 25b127b3e3
commit 2eaaed559f
6 changed files with 483 additions and 4 deletions
@@ -36,6 +36,10 @@ public sealed class InboundApiOptionsValidator : OptionsValidatorBase<InboundApi
$"ScadaBridge:InboundApi:StandbyForwardTimeout must be a positive duration " +
$"(was {options.StandbyForwardTimeout}); it bounds each standby→active relay attempt.");
builder.RequireThat(options.MaxLogLinesPerRun > 0,
$"ScadaBridge:InboundApi:MaxLogLinesPerRun must be greater than zero " +
$"(was {options.MaxLogLinesPerRun}); it caps the Log.* lines one traced method execution audits.");
foreach (var peer in options.StandbyForwardPeerEndpoints)
{
var ok = Uri.TryCreate(peer, UriKind.Absolute, out var uri)