Table of Contents

Struct OutagePageState

Namespace
SEBT.Portal.Core.Services
Assembly
SEBT.Portal.Core.dll

Whether a surface's outage page should currently be shown, and why.

public readonly record struct OutagePageState

Constructors

OutagePageState(bool, bool)

Whether a surface's outage page should currently be shown, and why.

public OutagePageState(bool IsActive, bool ScheduleIsAuthority)

Parameters

IsActive bool

True when the outage page should be shown for the surface.

ScheduleIsAuthority bool

True when schedule windows target the surface, meaning the schedule alone decided IsActive and the surface's manual feature flag was not consulted. Callers that publish the manual flag's value need this to know whether to overwrite it with IsActive.

Properties

IsActive

True when the outage page should be shown for the surface.

public bool IsActive { get; init; }

Property Value

bool

ScheduleIsAuthority

True when schedule windows target the surface, meaning the schedule alone decided IsActive and the surface's manual feature flag was not consulted. Callers that publish the manual flag's value need this to know whether to overwrite it with IsActive.

public bool ScheduleIsAuthority { get; init; }

Property Value

bool