Method ReleasePlacementAsync
- Namespace
- MailFathom.Application.Synchronization.Restore
- Assembly
- MailFathom.Application.dll
ReleasePlacementAsync(IPersistenceSession, MailboxRestoreAppendId, CancellationToken)
Takes a recorded placement off a record, which is what hands the record to an operator.
Task ReleasePlacementAsync(IPersistenceSession session, MailboxRestoreAppendId record, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe transaction the release commits in.
recordMailboxRestoreAppendIdThe record whose placement no pass can carry.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task
A task that completes once the release is staged in the session.
Remarks
A record carrying a placement is read as work the next pass finishes, so one that no pass can finish has to stop carrying one or it holds the account in its phase for ever while being offered to nobody. There is one caller: an alias repointed between the append and the carry, where the copy sits in a folder the alias no longer names and only a person can say what became of it. The occurrence being taken by something else is the other such case and is not here, because that one is decided inside ConfirmAppendAsync(IPersistenceSession, MailboxRestoreAppend, EmailOccurrenceId, CancellationToken) and released in the same transaction that decided it.