Table of Contents

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

runStore IStoredContentMoveRunStore

Reads the move this deployment has, and records what the operator decided about it.

commitPolicy OptimisticConcurrencyRetryPolicy

Makes the read and the write one decision, and resolves a race with a running pass.

timeProvider TimeProvider

Stamps the request.

authorization AccessAuthorization

Answers which principal reached this use case.

objectBackend IEmailContentObjectBackend

The 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.