Table of Contents

Interface IOutageScheduleEvaluator

Namespace
SEBT.Portal.Infrastructure.Services
Assembly
SEBT.Portal.Infrastructure.dll

Decides whether the current time falls within a configured outage window so the outage page can auto-enable during scheduled maintenance. Windows are evaluated per-surface via their Target.

public interface IOutageScheduleEvaluator

Methods

HasScheduledWindows(OutageTarget)

Returns true when any configured window applies to surface, regardless of whether its Start/End parse or whether it is currently active. Callers use this to decide whether the schedule (rather than a manual feature flag) is the authority for that surface. Windows with an unrecognized Target are excluded — a window skipped during evaluation must not silently lock out the manual toggle.

bool HasScheduledWindows(OutageTarget surface)

Parameters

surface OutageTarget

Returns

bool

IsOutageActive(OutageTarget)

Returns true when "now" is inside any configured outage window that applies to surface (its Target is that surface or "Both"). Never throws — missing or invalid configuration is treated as "no scheduled outage" (false).

bool IsOutageActive(OutageTarget surface)

Parameters

surface OutageTarget

Returns

bool