Class StoredContentMoveControl
- Namespace
- MailFathom.Application.EmailContent.Move
- Assembly
- MailFathom.Application.dll
Starts the move of stored content into the bucket, stops it, and starts it again.
public sealed class StoredContentMoveControl
- Inheritance
-
StoredContentMoveControl
- Inherited Members
Remarks
Three decisions and no work. What each of them writes is the state a bounded pass reads before it copies anything, so an operator's terminal neither carries the move nor keeps it alive — which is what makes every one of these answer immediately however much mail the deployment holds, and what makes a paused move stay paused across a restart.
Asking a deployment to rewrite where its mail is held is work it performs on request, which is the grant it asks for. Reading how far it has come is a different grant, and neither implies the other.
Constructors
- StoredContentMoveControl(IStoredContentMoveRunStore, OptimisticConcurrencyRetryPolicy, TimeProvider, AccessAuthorization, IEmailContentObjectBackend?)
Initializes the control.
Properties
- IsAvailable
Gets whether this deployment has an object backend a move could carry its content into.
Methods
- PauseAsync(CancellationToken)
Stops the move where it is, leaving everything it has already carried exactly as it is.
- ResumeAsync(CancellationToken)
Sets a paused move going again from the position it stopped at.
- StartAsync(CancellationToken)
Asks for every payload the database still holds to be carried into the bucket.