Method StartAsync
- Namespace
- MailFathom.Application.EmailContent.Move
- Assembly
- MailFathom.Application.dll
StartAsync(CancellationToken)
Asks for every payload the database still holds to be carried into the bucket.
public Task<StoredContentMoveRun> StartAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<StoredContentMoveRun>
The move the deployment now has, which is the one already under way when there was one.
Remarks
A move that is running or paused is answered with itself rather than replaced, and that is the point: starting over would discard a paused operator's position and walk everything behind it a second time. What starts a fresh move is a deployment that has none, or one whose last move finished — which is also how the payloads a move refused to carry are reached again once whatever refused them has been repaired.
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 two requests raced past the bounded retries.