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
authorizationAccessAuthorizationAnswers which principal reached this use case.
exportsIMailboxExportStoreNames what has come due and records that it expired.
archivesIMailboxExportArchiveStoreRemoves the archives.
auditorIMailboxExportAuditorRecords each expiry, because an archive going is an act on somebody's mailbox copy.
leasesIWorkLeaseRunnerHolds the sweep's scope for the length of one pass.
timeProviderTimeProviderReads the instant expiry is judged against.
Exceptions
- ArgumentNullException
Thrown when an argument is null.