Table of Contents

Method ReadTrailingSettingsAsync

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

ReadTrailingSettingsAsync(int, CancellationToken)

Reads accounts whose settings columns were not read out of the document they now hold, served or not.

Task<IReadOnlyList<MailAccountTrailingSettings>> ReadTrailingSettingsAsync(int limit, CancellationToken cancellationToken)

Parameters

limit int

The most accounts to read, in identifier order.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<IReadOnlyList<MailAccountTrailingSettings>>

The accounts, each at the version its document stands at, without the document where it is past the size MailFathom binds one from.

Remarks

Only a build older than those columns leaves one, by rewriting or creating the document alone during a rolling upgrade, and the migration that added them leaves every row it filled for the host's own binding to read again.