Table of Contents

Constructor MailboxExportExpirySweep

Namespace
MailFathom.Application.Mail.Export
Assembly
MailFathom.Application.dll

MailboxExportExpirySweep(AccessAuthorization, IMailboxExportStore, IMailboxExportArchiveStore, IMailboxExportAuditor, IWorkLeaseRunner, TimeProvider)

Initializes the sweep.

public MailboxExportExpirySweep(AccessAuthorization authorization, IMailboxExportStore exports, IMailboxExportArchiveStore archives, IMailboxExportAuditor auditor, IWorkLeaseRunner leases, TimeProvider timeProvider)

Parameters

authorization AccessAuthorization

Answers which principal reached this use case.

exports IMailboxExportStore

Names what has come due and records that it expired.

archives IMailboxExportArchiveStore

Removes the archives.

auditor IMailboxExportAuditor

Records each expiry, because an archive going is an act on somebody's mailbox copy.

leases IWorkLeaseRunner

Holds the sweep's scope for the length of one pass.

timeProvider TimeProvider

Reads the instant expiry is judged against.

Exceptions

ArgumentNullException

Thrown when an argument is null.