Method ResumeAsync
- Namespace
- MailFathom.Application.EmailContent.Move
- Assembly
- MailFathom.Application.dll
ResumeAsync(CancellationToken)
Sets a paused move going again from the position it stopped at.
public Task<StoredContentMoveRun?> ResumeAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<StoredContentMoveRun>
The move as it now stands, or null when this deployment has never been asked for one.
Remarks
A move that finished is not resumed, because its walk reached the end of the content: what reaches the payloads it left behind is a further move, which StartAsync(CancellationToken) begins.
Exceptions
- InvalidOperationException
Thrown when the deployment configured no object-storage endpoint, which IsAvailable reports.
- PrincipalNotAuthorizedException
Thrown when the use case was reached by anything but a caller granted AdminOperate.
- PersistenceConcurrencyConflictException
Thrown when this decision and a running pass's own commit raced past the bounded retries.