Constructor MailFolderFreshness
- Namespace
- MailFathom.Application.Accounts
- Assembly
- MailFathom.Application.dll
MailFolderFreshness(MailFolderAlias, MailSynchronizationState, DateTimeOffset?, bool)
How current one folder's local copy is, in the three facts a screen drawing it beside its mail needs.
public MailFolderFreshness(MailFolderAlias Alias, MailSynchronizationState State, DateTimeOffset? SynchronizedAt, bool IsBehind)
Parameters
AliasMailFolderAliasMailFathom's own name for the folder.
StateMailSynchronizationStateWhether the deployment's last attempt at the folder succeeded, failed, found no server, or has never happened.
SynchronizedAtDateTimeOffset?When the folder last durably committed progress, or null when it never has.
IsBehindboolWhether the folder's last attempt ended with mail it had not yet taken in.
Remarks
It is MailboxFolderFreshness — the durable half, which is one instant — reduced together with what this process's synchronization run ledger observed. Neither source answers on its own: the instant says how old the copy is and nothing about whether anything is still refreshing it, and the ledger says how the last attempt went and nothing about how much of the folder had already been stored before it.
Being behind is deliberately not a state. A folder can be behind under any of them — a run that succeeded within its batch budget leaves mail for the next one, and a failing folder is usually behind as well — so folding it in would make one field answer two questions and lose whichever the reader was not asking.