Table of Contents

Interface IServedMailAccountReader

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

Answers questions about every mail account this deployment serves, from the account records themselves.

public interface IServedMailAccountReader

Remarks

An account is served when it holds an address, its document binds, and somebody is assigned it. Each of the three is what composing a user requires of an account before serving it: an account the upgrade derived no address for waits for one to be stated, a document nothing can bind declares nothing, and an account nobody is assigned is read by nobody.

Nothing here is held between calls. Every answer is one query, so a caller that needs one several times reads it once at the start of its work and keeps the value for as long as that work runs.

Methods

ReadAccountsRequestingScanningAsync(CancellationToken)

Reads every served account that asked for a scanner or a screening of its own.

ReadScanningRequestAsync(MailAccountId, CancellationToken)

Reads what one served account asked for about scanning its mail.

ReadScanningRequestsAsync(UserId?, CancellationToken)

Reads each distinct answer served accounts gave about scanning their mail.

ReadServedAsync(IReadOnlyCollection<Guid>, CancellationToken)

Reads which of the named accounts this deployment serves, by the columns that name them.

ReadServedAsync(CancellationToken)

Reads every account this deployment serves, by the columns that name it.

ReadServedRecordsAsync(CancellationToken)

Reads every account this deployment serves whole, document included.

ReadServedVersionsAsync(Guid?, int, CancellationToken)

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

ReadTrailingSettingsAsync(int, CancellationToken)

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