Table of Contents

RateCacheCoverageEntry Class

Definition

Namespace
Bodu.Financial.ExchangeRates.Caching
Assembly
Bodu.Financial.ExchangeRates.Caching.dll
Package
Bodu.Financial.ExchangeRates.Caching 1.0.0
Source
RateCacheCoverageEntry.cs

The mutable serialization shape of one recorded coverage window, distinct from the internal Bodu.Financial.ExchangeRates.Caching.CoverageWindow value so the on-disk format can evolve independently of the in-memory contract.

public sealed class RateCacheCoverageEntry
Inheritance
RateCacheCoverageEntry
Inherited Members
Extension Methods

Remarks

A coverage entry records that the inclusive range Start..End was fetched from the provider at FetchedAtUtc, which drives expiry of the coverage the same way a cached row's caching instant drives expiry of the rate.

Constructors

RateCacheCoverageEntry()

public RateCacheCoverageEntry()

Properties

End

Gets or sets the inclusive last date of the fetched range.

public DateOnly End { get; set; }

Property Value

DateOnly

The last date covered by the window.

FetchedAtUtc

Gets or sets the UTC instant at which the range was fetched and recorded as covered.

public DateTimeOffset FetchedAtUtc { get; set; }

Property Value

DateTimeOffset

The instant the window was recorded.

Start

Gets or sets the inclusive first date of the fetched range.

public DateOnly Start { get; set; }

Property Value

DateOnly

The first date covered by the window.

Applies to

ProductVersions
.NET8, 10