Class ProbeWindow
- Namespace
- Kuestenlogik.Bowire.Monitoring
- Assembly
- Kuestenlogik.Bowire.Monitoring.dll
A UTC time-of-day window plus a weekday set. A probe only fires inside the
window; outside it, the next run is deferred to the next in-window instant.
An End before Start crosses midnight (#840):
22:00-06:00 closes on the following day, and the day set names the
day the window opens, so 22:00-06:00, Fri runs Friday night into
Saturday morning.
public sealed class ProbeWindow
- Inheritance
-
ProbeWindow
- Inherited Members
Constructors
ProbeWindow(TimeOnly, TimeOnly, IReadOnlySet<DayOfWeek>)
public ProbeWindow(TimeOnly start, TimeOnly end, IReadOnlySet<DayOfWeek> days)
Parameters
startTimeOnlyendTimeOnlydaysIReadOnlySet<DayOfWeek>
Properties
Days
public IReadOnlySet<DayOfWeek> Days { get; }
Property Value
End
public TimeOnly End { get; }
Property Value
Start
public TimeOnly Start { get; }
Property Value
Methods
Contains(DateTimeOffset)
True when instant (in UTC) falls inside a window opened on an allowed day.
public bool Contains(DateTimeOffset instant)
Parameters
instantDateTimeOffset
Returns
NextWithin(DateTimeOffset)
The earliest in-window instant at or after from.
Scans from yesterday's window (one crossing midnight may still be open)
up to a week ahead; returns from unchanged if no
allowed day exists (defensive — a window always has ≥ 1 day).
public DateTimeOffset NextWithin(DateTimeOffset from)
Parameters
fromDateTimeOffset