SessionOutage
public sealed record SessionOutage : IEquatable<SessionOutage>
A span of session time in which one source was not there, and the reason it was not.
Read from the records the recorder wrote into the file, so it survives the recorder: an application that opens a session file a year later gets the same answer the operator had at the time.
SessionOutage: constructors
public SessionOutage(TimeSpan From, Nullable<TimeSpan> Until, bool Ended, string Reason)
A span of session time in which one source was not there, and the reason it was not.
From: When the source went away, in session time.Until: When it came back, ornullwhen it never did: the session stopped while the camera was still gone.Ended:truewhen the source ended here rather than dropping out. An ended source has noUntilby construction; its track is finished.Reason: What the application said about it at the time, or an empty string.
Read from the records the recorder wrote into the file, so it survives the recorder: an application that opens a session file a year later gets the same answer the operator had at the time.
SessionOutage: properties
public bool Ended { get; init; }
true when the source ended here rather than dropping out. An ended source has no Until by construction; its track is finished.
public TimeSpan From { get; init; }
When the source went away, in session time.
public string Reason { get; init; }
What the application said about it at the time, or an empty string.
public Nullable<TimeSpan> Until { get; init; }
When it came back, or null when it never did: the session stopped while the camera was still gone.