Method ReadAsync
- Namespace
- MailFathom.Application.EmailContent.Move
- Assembly
- MailFathom.Application.dll
ReadAsync(CancellationToken)
Reads the move and the backlog behind it.
public Task<StoredContentMoveProgress> ReadAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<StoredContentMoveProgress>
The move, where there is one, together with what the database still holds.
Remarks
The backlog is counted whether or not a move exists, because that is the figure an operator weighs before asking for one. It is an aggregate over the five content tables and is therefore read on request rather than published as a series: what it costs is proportional to the mail stored, and nothing needs it on a scrape interval.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the use case was reached by anything but a caller granted AdminRead.