Class OpenedOutgoingEmail
- Namespace
- MailFathom.Application.Mail.Delivery
- Assembly
- MailFathom.Application.dll
The record one request has, and whether writing it down is what this call did.
public sealed record OpenedOutgoingEmail : IEquatable<OpenedOutgoingEmail>
- Inheritance
-
OpenedOutgoingEmail
- Implements
- Inherited Members
Remarks
An idempotent enqueue answers a repeated request with the record the first one left, which is what makes a retry safe. That leaves the two outcomes indistinguishable in the record itself — it is the same row either way — so anything a send should cause exactly once, however often the request arrives, reads it here instead. The audit of an authored send is the case that exists today: a second entry for one outgoing message, at a second moment, would report a message as having been sent twice to whoever reads the trail for an odd send.
Properties
- Record
Gets the durable record for the request, whichever call wrote it.
- WasRecordedNow
Gets whether this call is the one that wrote the record, rather than finding it already written.
Methods
- AlreadyRecorded(OutgoingEmailRecord)
Reports that an identical earlier request had already written the record.
- RecordedNow(OutgoingEmailRecord)
Reports that this call wrote the record down.