fix(esg): short-TTL definition cache for central lookups (review 2026-10-21 05/P2)

This commit is contained in:
Joseph Doherty
2026-10-22 08:41:54 -04:00
parent ee8be8001e
commit 12f815a7ea
8 changed files with 193 additions and 4 deletions
@@ -29,5 +29,9 @@ public sealed class ExternalSystemGatewayOptionsValidator : OptionsValidatorBase
builder.RequireThat(options.MaxResponseBodyBytes > 0,
$"ScadaBridge:ExternalSystemGateway:MaxResponseBodyBytes must be greater than zero " +
$"(was {options.MaxResponseBodyBytes}); it caps the outbound response body buffered into memory.");
builder.RequireThat(options.DefinitionCacheTtl >= TimeSpan.Zero,
$"ScadaBridge:ExternalSystemGateway:DefinitionCacheTtl must not be negative " +
$"(was {options.DefinitionCacheTtl}); use 00:00:00 to disable the definition cache.");
}
}