Table of Contents

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

CheckedAt DateTimeOffset

When the feed was last fetched or revalidated (or tried).

Failure string

Why the last attempt failed (e.g. 404 Not Found), or null when it succeeded.

FailingSince DateTimeOffset?

When the current run of failures began, if failing.

CopyFetchedAt DateTimeOffset?

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

DateTimeOffset

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

DateTimeOffset?

FailingSince

When the current run of failures began, if failing.

public DateTimeOffset? FailingSince { get; init; }

Property Value

DateTimeOffset?

Failure

Why the last attempt failed (e.g. 404 Not Found), or null when it succeeded.

public string? Failure { get; init; }

Property Value

string

IsReachable

True when the last attempt reached the server.

public bool IsReachable { get; }

Property Value

bool