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
maxDeliveriesPerPassintThe greatest number of queued sends one pass claims.
leaseDurationTimeSpanHow long a claim holds each record it takes.
attemptTimeoutTimeSpanHow long one send may be attempted for.
maxAttemptsintHow many attempts one send may be handed out for.
retryBaseDelayTimeSpanThe delay the first retry is drawn around.
retryMaxDelayTimeSpanThe ceiling a grown retry delay never exceeds.
allowedLatenessTimeSpanHow 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
attemptTimeoutis not shorter thanleaseDuration, or whenretryMaxDelayis belowretryBaseDelay.