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
accountIdMailAccountIdThe account whose queued sends the claim takes.
batchSizeintThe greatest number of records to take.
leaseDurationTimeSpanHow 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
batchSizeis not positive orleaseDurationis not positive.