Table of Contents

Method Create

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

Create(int, TimeSpan, TimeSpan, int, TimeSpan, TimeSpan, TimeSpan)

States the bounds one pass runs under.

public static MailOutboxSettings Create(int maxDeliveriesPerPass, TimeSpan leaseDuration, TimeSpan attemptTimeout, int maxAttempts, TimeSpan retryBaseDelay, TimeSpan retryMaxDelay, TimeSpan allowedLateness)

Parameters

maxDeliveriesPerPass int

The greatest number of queued sends one pass claims.

leaseDuration TimeSpan

How long a claim holds each record it takes.

attemptTimeout TimeSpan

How long one send may be attempted for.

maxAttempts int

How many attempts one send may be handed out for.

retryBaseDelay TimeSpan

The delay the first retry is drawn around.

retryMaxDelay TimeSpan

The ceiling a grown retry delay never exceeds.

allowedLateness TimeSpan

How long after the time a send was written for this deployment will still deliver it.

Returns

MailOutboxSettings

The validated bounds.

Exceptions

ArgumentOutOfRangeException

Thrown when a count is not positive, when a duration is not positive, when attemptTimeout is not shorter than leaseDuration, or when retryMaxDelay is below retryBaseDelay.