Table of Contents

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
object
EnrollmentCheckerSettingsValidator

Methods

Validate(string?, EnrollmentCheckerSettings)

Validates a specified named options instance (or all if name is null).

public ValidateOptionsResult Validate(string? name, EnrollmentCheckerSettings options)

Parameters

name string

The name of the options instance being validated.

options EnrollmentCheckerSettings

The options instance.

Returns

ValidateOptionsResult

The Microsoft.Extensions.Options.ValidateOptionsResult result.