Table of Contents

Class OutgoingEmailLeaseLostException

Namespace
MailFathom.Application.Mail.Delivery.Outbox
Assembly
MailFathom.Application.dll

Indicates that the record an attempt was writing to is held by a later attempt.

public sealed class OutgoingEmailLeaseLostException : MailFathomException, ISerializable
Inheritance
OutgoingEmailLeaseLostException
Implements
Inherited Members

Remarks

It is raised where a write is refused rather than where the lease expired, because nothing observes the expiry: a lease runs out on the database's clock and the attempt that held it finds out by being told its write does not apply. What that means for the caller is that the outcome it was about to record is not this record's outcome — the attempt holding the lease now is the one whose answer counts — so it is dropped rather than forced.

The message names the record and the attempt, both of which are MailFathom's own identifiers. No address, subject, or reply text reaches it.

Constructors

OutgoingEmailLeaseLostException(OutgoingEmailId, Guid)

Initializes a new lease-lost failure naming the record whose lease had moved on.

Properties

ErrorCode

Gets the stable code identifying this failure to a boundary that must report it without naming a type.

OutgoingEmailId

Gets the record whose lease had moved on.

Owner

Gets the attempt whose write was refused.