Table of Contents

Class MailboxChangeProgressReader

Namespace
MailFathom.Application.Mail.Mutations.Authoring
Assembly
MailFathom.Application.dll

Answers where the changes one caller authored have got to.

public sealed class MailboxChangeProgressReader
Inheritance
MailboxChangeProgressReader
Inherited Members

Remarks

It is what makes a change acknowledged before it has reached a mail server usable rather than a promise. The authoring call answers with a record identity and the stage it starts at; this is the read a caller comes back to until the change is done, and it is the only place a pending change against an unreachable account becomes something a person can be shown rather than an absence they infer.

It reads the local copy and reaches no mail server, so asking how a change is getting on never costs a connection against the account's own budget and never delays the pass that is carrying the change.

A record belonging to another user is absent rather than refused, and so is one recorded in a folder this caller may no longer read — the same answer a read of that folder's mail gives, reached the same way. What is left is a caller reading about its own work, which is why the grant is the one that already lets it read the mail the work is about.

Constructors

MailboxChangeProgressReader(AccessAuthorization, MailboxScopeResolver, IMailboxMutationRecordStore)

Initializes the use case over the grant it asks first and the records it reads.

Fields

MaximumRecordsPerRead

The greatest number of records one read may ask about.

Methods

ReadAsync(IReadOnlyList<MailboxMutationRecordId>, CancellationToken)

Reads where each of the named changes stands.