Table of Contents

Class OutageScheduleSettingsValidator

Namespace
SEBT.Portal.Infrastructure.Configuration.Validators
Assembly
SEBT.Portal.Infrastructure.dll

Rejects a malformed outage schedule at startup rather than letting the evaluator skip windows it cannot parse. A mistyped date or target would otherwise degrade silently, and a window that cannot be evaluated still makes the schedule authoritative for its surface, suppressing the manual outage flag. Failing the host is the only signal loud enough.

Every problem is reported together so an operator fixes the whole schedule in one pass instead of discovering the next bad window on the next failed boot.

public sealed class OutageScheduleSettingsValidator
Inheritance
object
OutageScheduleSettingsValidator

Methods

Validate(string?, OutageScheduleSettings)

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

public ValidateOptionsResult Validate(string? name, OutageScheduleSettings options)

Parameters

name string

The name of the options instance being validated.

options OutageScheduleSettings

The options instance.

Returns

ValidateOptionsResult

The Microsoft.Extensions.Options.ValidateOptionsResult result.