Table of Contents

Method ReadTrailingAsync

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

ReadTrailingAsync(Guid?, int, CancellationToken)

Reads the users whose stamp does not match their row, in identifier order.

Task<IReadOnlyList<UserId>> ReadTrailingAsync(Guid? after, int limit, CancellationToken cancellationToken)

Parameters

after Guid?

The user the previous reading ended on, to read on from, or null to read from the first.

limit int

The greatest number of users to read.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<IReadOnlyList<UserId>>

No more than limit such users, each past after; no document travels with them.

Exceptions

ArgumentOutOfRangeException

Thrown when limit is not positive.

UserSettingsUnreadableException

Thrown when the database declined the read.