Table of Contents

Method ReadServedVersionsAsync

Namespace
MailFathom.Infrastructure.Persistence.Users.AccountSettings
Assembly
MailFathom.Infrastructure.dll

ReadServedVersionsAsync(Guid?, int, CancellationToken)

Reads one page of the accounts this deployment serves, each with the version its record stands at.

Task<IReadOnlyList<ServedMailAccountVersion>> ReadServedVersionsAsync(Guid? after, int limit, CancellationToken cancellationToken)

Parameters

after Guid?

The last identifier of the previous page, or null for the first page.

limit int

The most accounts the page holds.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<IReadOnlyList<ServedMailAccountVersion>>

The page, in the order of the identifiers; a page shorter than limit is the last.

Remarks

Keyed on the identifier rather than on a position, so an account recorded or erased between two pages moves no other account across the boundary: a walk of every page reads every account that was served throughout it once.