Class FeedHealth
- Namespace
- EncDotNet.S100.Collections.Indexing
- Assembly
- EncDotNet.S100.Collections.dll
How the last attempt to reach a feed went, for showing whether a shared feed's server is reachable (UX refinement §2).
public sealed record FeedHealth : IEquatable<FeedHealth>
- Inheritance
-
FeedHealth
- Implements
- Inherited Members
Constructors
FeedHealth(DateTimeOffset, string?, DateTimeOffset?, DateTimeOffset?)
How the last attempt to reach a feed went, for showing whether a shared feed's server is reachable (UX refinement §2).
public FeedHealth(DateTimeOffset CheckedAt, string? Failure, DateTimeOffset? FailingSince, DateTimeOffset? CopyFetchedAt)
Parameters
CheckedAtDateTimeOffsetWhen the feed was last fetched or revalidated (or tried).
FailurestringWhy the last attempt failed (e.g.
404 Not Found), or null when it succeeded.FailingSinceDateTimeOffset?When the current run of failures began, if failing.
CopyFetchedAtDateTimeOffset?When the cached copy in use was fetched, if a cached copy is being served while failing.
Properties
CheckedAt
When the feed was last fetched or revalidated (or tried).
public DateTimeOffset CheckedAt { get; init; }
Property Value
CopyFetchedAt
When the cached copy in use was fetched, if a cached copy is being served while failing.
public DateTimeOffset? CopyFetchedAt { get; init; }
Property Value
FailingSince
When the current run of failures began, if failing.
public DateTimeOffset? FailingSince { get; init; }
Property Value
Failure
Why the last attempt failed (e.g. 404 Not Found), or null when it succeeded.
public string? Failure { get; init; }
Property Value
IsReachable
True when the last attempt reached the server.
public bool IsReachable { get; }