Class EnrollmentCheckerSettingsValidator
- Namespace
- SEBT.Portal.Infrastructure.Configuration.Validators
- Assembly
- SEBT.Portal.Infrastructure.dll
Rejects income screening figures that would screen households against the wrong numbers.
This section hot-reloads from AWS AppConfig, and a reload this validator rejects fails every consumer of the section, the checker's features endpoint included, until the value is corrected. So it only rejects values that are wrong rather than unfinished. Banner copy is deliberately not checked: a blank banner is not worth taking the features endpoint down.
public class EnrollmentCheckerSettingsValidator
- Inheritance
-
objectEnrollmentCheckerSettingsValidator
Methods
Validate(string?, EnrollmentCheckerSettings)
Validates a specified named options instance (or all if name is null).
public ValidateOptionsResult Validate(string? name, EnrollmentCheckerSettings options)
Parameters
namestringThe name of the options instance being validated.
optionsEnrollmentCheckerSettingsThe options instance.
Returns
- ValidateOptionsResult
The Microsoft.Extensions.Options.ValidateOptionsResult result.