Method ReadServedVersionsAsync
- 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
afterGuid?The last identifier of the previous page, or null for the first page.
limitintThe most accounts the page holds.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<IReadOnlyList<ServedMailAccountVersion>>
The page, in the order of the identifiers; a page shorter than
limitis 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.