Constructor ClaimedOutgoingEmail
- Namespace
- MailFathom.Application.Mail.Delivery.Outbox
- Assembly
- MailFathom.Application.dll
ClaimedOutgoingEmail(OutgoingEmailRecord, OutgoingEmailLease)
One queued send a claim handed to one attempt, with the lease that attempt holds it under.
public ClaimedOutgoingEmail(OutgoingEmailRecord Record, OutgoingEmailLease Lease)
Parameters
RecordOutgoingEmailRecordThe send this attempt holds, as the claim left it.
LeaseOutgoingEmailLeaseThe lease this attempt holds it under.
Remarks
The attempt count on the record includes this attempt, because the claim counted it. Counting at the claim rather than in whatever transmits is what makes the bound survive a crash loop: a process that dies mid-attempt never reaches a line that would have counted it, and a send that kills the host every time would otherwise be attempted forever.