Class PreparedLocalCopies
- Namespace
- MailFathom.Application.Mail.Mutations.Local
- Assembly
- MailFathom.Application.dll
Every held copy one batch asks for, already placed.
public sealed class PreparedLocalCopies
- Inheritance
-
PreparedLocalCopies
- Inherited Members
Remarks
It exists for the reason MailboxDestinations exists: placing a payload must happen with no transaction open across it, so the author is handed the answers rather than the collaborator that produces them and cannot place one halfway through a commit.
The copies of one message are held as a list rather than keyed by the action that asked for one, because every copy of a message carries the same payload and the same metadata: which of them an action takes decides nothing. An author therefore walks the list in the order it submits its copies, and a transaction retried from the beginning walks it from the beginning again and reaches the same answers.
A copy that is placed and never committed leaves an object nothing points at, which the content reclamation pass takes exactly as it takes one left by a transaction that rolled back.
Properties
- None
Gets the answers for a batch that asks for no held copy at all.
Methods
- Of(StoredEmailId)
Finds the copies placed for one stored message.