Table of Contents

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

recipient OutgoingRecipient

The recipient the row is about.

status OutgoingRecipientStatus

The stored status.

lastReplyCode int?

The stored reply code, where one was recorded.

answeredAt DateTimeOffset?

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 status is not a declared status.