Class OutageScheduleSettings
- Namespace
- SEBT.Portal.Core.AppSettings
- Assembly
- SEBT.Portal.Core.dll
Configurable schedule of outage windows. When the current time (interpreted in
TimeZoneId) falls within any window, the portal force-enables the
outage_page_enabled feature flag so the outage page appears automatically — no manual
toggling required. Bind from appsettings.{State}.json or the AWS AppConfig AppSettings profile
(the latter allows updating windows at runtime without a redeploy).
Validated at startup: an unknown timezone, an unparseable window, a window that ends before it starts, or an unrecognized target all prevent the app from starting. A malformed schedule is a deploy failure, never a silently skipped window.
public sealed class OutageScheduleSettings : IHaveConfigSectionName
- Inheritance
-
objectOutageScheduleSettings
- Implements
Properties
SectionName
public static string SectionName { get; }
Property Value
- string
TimeZoneId
IANA timezone used to interpret each window's local Start/End (e.g. "America/Denver").
public string TimeZoneId { get; set; }
Property Value
- string
Windows
Scheduled outage windows. Empty (the default) means no scheduled outages.
public List<OutageWindow> Windows { get; set; }
Property Value
- List<OutageWindow>