Method Create
- Namespace
- MailFathom.Domain.Delivery
- Assembly
- MailFathom.Domain.dll
Create(OutgoingRecipient, OutgoingRecipientStatus, int?, DateTimeOffset?)
Restores an outcome exactly as a stored row holds it.
public static OutgoingRecipientOutcome Create(OutgoingRecipient recipient, OutgoingRecipientStatus status, int? lastReplyCode, DateTimeOffset? answeredAt)
Parameters
recipientOutgoingRecipientThe recipient the row is about.
statusOutgoingRecipientStatusThe stored status.
lastReplyCodeint?The stored reply code, where one was recorded.
answeredAtDateTimeOffset?When that reply was recorded, where one was.
Returns
- OutgoingRecipientOutcome
The outcome the row states.
Remarks
It accepts the parts loose because a stored row hands them back that way, and it validates only the status: the reply code is diagnostic detail an older row may hold in a shape this build would no longer write, and refusing the whole record over it would strand a send rather than let it be read.
Exceptions
- ArgumentOutOfRangeException
Thrown when
statusis not a declared status.