Table of Contents

Method Create

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

Create(MailAccountId, int, TimeSpan)

States a claim to make.

public static OutgoingEmailClaimRequest Create(MailAccountId accountId, int batchSize, TimeSpan leaseDuration)

Parameters

accountId MailAccountId

The account whose queued sends the claim takes.

batchSize int

The greatest number of records to take.

leaseDuration TimeSpan

How long the claim holds each record.

Returns

OutgoingEmailClaimRequest

The claim to issue, stamped for a new attempt.

Remarks

The owner is generated here rather than supplied, so no caller can claim under an identity another attempt already holds.

Exceptions

ArgumentOutOfRangeException

Thrown when batchSize is not positive or leaseDuration is not positive.