Constructor StoredContentMoveControl
- Namespace
- MailFathom.Application.EmailContent.Move
- Assembly
- MailFathom.Application.dll
StoredContentMoveControl(IStoredContentMoveRunStore, OptimisticConcurrencyRetryPolicy, TimeProvider, AccessAuthorization, IEmailContentObjectBackend?)
Initializes the control.
public StoredContentMoveControl(IStoredContentMoveRunStore runStore, OptimisticConcurrencyRetryPolicy commitPolicy, TimeProvider timeProvider, AccessAuthorization authorization, IEmailContentObjectBackend? objectBackend = null)
Parameters
runStoreIStoredContentMoveRunStoreReads the move this deployment has, and records what the operator decided about it.
commitPolicyOptimisticConcurrencyRetryPolicyMakes the read and the write one decision, and resolves a race with a running pass.
timeProviderTimeProviderStamps the request.
authorizationAccessAuthorizationAnswers which principal reached this use case.
objectBackendIEmailContentObjectBackendThe bucket a move would carry content into, absent where the deployment configured none.
Remarks
The object backend is asked for rather than required, and its presence is the whole of what IsAvailable reports — the same idiom the content store selects its backend by. A deployment storing content in the database has nowhere to move it to, and that is a fact about its configuration rather than a failure to raise while composing the graph.
Exceptions
- ArgumentNullException
Thrown when a required collaborator is null.