fix(esg): short-TTL definition cache for central lookups (review 2026-10-21 05/P2)
This commit is contained in:
+4
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user