Class MailAccountDirectoryReader
- Namespace
- MailFathom.Application.Accounts
- Assembly
- MailFathom.Application.dll
Reads which accounts this deployment serves and how current the local copy of each one is.
public sealed class MailAccountDirectoryReader
- Inheritance
-
MailAccountDirectoryReader
- Inherited Members
Remarks
It is the one use case that publishes the account set rather than using it as a bound. Every other reader asks the catalog what it may read and answers only about the account the caller already named; this exists because a caller that cannot see the accounts cannot name one, and a filter it has no way to fill in is a filter nobody uses.
What it publishes is MailFathom's own configured names and the progress of synchronization against them. The mail server, the port, the user name, and every credential stay out of it: the display name is what makes a mailbox recognizable, and how MailFathom reaches it is the operator's business rather than the caller's.
It reaches no mail server. The freshness it reports is what synchronization durably committed, so the answer is the same whether or not a mail server is reachable at the moment it is asked.
Constructors
- MailAccountDirectoryReader(IMailAccountCatalog, ISynchronizationFreshnessReader, MailboxScopeResolver, IMailboxReadTelemetry)
Initializes the use case.
Methods
- ReadAsync(CancellationToken)
Reads the served accounts and their synchronization freshness.